An open API service indexing awesome lists of open source software.

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

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.