formal-language / grammar

:fountain_pen: Grammar compilation toolkit for JavaScript
https://formal-language.github.io/grammar
GNU Affero General Public License v3.0
2 stars 0 forks source link

Guess type of symbol if not explicitly specified #45

Open make-github-pseudonymous-again opened 4 years ago

make-github-pseudonymous-again commented 4 years ago

If there are production rules associated to the symbol, it is a nonterminal. Otherwise, it is a terminal

make-github-pseudonymous-again commented 4 years ago

Or automatically complete grammar when no production rules are associated with a nonterminal.

make-github-pseudonymous-again commented 4 years ago

In both cases there could be conflicts.