Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing Parsers Like it is 2017 [pdf]. Parent comment
- Recursive descent parser for statements
- "Canned" configurable expression parser for expressions: https://github.com/stefanhaustein/expressionparser
- Both use a simple regex based generic tokenizer
- In more complex cases, parse the expressions to an unresolved syntax tree first (constructed from the bottom), then resolve the tree in a secondary top-down step (potentially to a linear representation).
There are no comments on this comment yet.
- Recursive descent parser for statements
- "Canned" configurable expression parser for expressions: https://github.com/stefanhaustein/expressionparser
- Both use a simple regex based generic tokenizer
- In more complex cases, parse the expressions to an unresolved syntax tree first (constructed from the bottom), then resolve the tree in a secondary top-down step (potentially to a linear representation).