4 ms·
BNF sounds like the standard approach. Are there any BNF parsers + generators usable from Javascript?
by asdasdasdasdwd 7y ago
BNF sounds like the standard approach. Are there any BNF parsers + generators usable from Javascript?
- dmitriid 7y agoPEG is another popular approach
- jerrysievert 7y agojison works fairly well, and is mostly compatible with bison.
- bd82 7y agoSome of the top of my Head: - Antlr (https://github.com/antlr/antlr4/blob/master/doc/javascript-target.md) - PegJS (https://github.com/pegjs/pegjs) - Nearley (https://github.com/kach/nearley)