https://github.com/apendua/any-language
A toolbelt for creating cool parsers and interpreters
https://github.com/apendua/any-language
expression-evaluator grammar parser pratt-parser
Last synced: 9 months ago
JSON representation
A toolbelt for creating cool parsers and interpreters
- Host: GitHub
- URL: https://github.com/apendua/any-language
- Owner: apendua
- License: mit
- Created: 2017-06-21T08:39:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T23:19:39.000Z (over 8 years ago)
- Last Synced: 2025-04-05T05:16:10.220Z (about 1 year ago)
- Topics: expression-evaluator, grammar, parser, pratt-parser
- Language: JavaScript
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# any-language
** Q&A
> Why can't we identify symbol type in tokenizer?
We can't do that because symbols can depend on the current parser context, while
tokens are clearly context-free.
> Why we are not using variables in parser context?
Because the semantic analysis can be easily done as a separated process
and removing it from the parser logic simplifies everything, starting from
grammatic rules definition, lookahead, and finally AST caching.