Re:Write a parser with JavaScript
by asdasdasdasdwd on Thursday December 12, 2019 @11:58AM
(#21773610)
BNF sounds like the standard approach. Are there any BNF parsers + generators usable from Javascript?
Some 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)PEG is another popular approach
Re:Write a parser with JavaScript
by jerrysievert on Thursday December 12, 2019 @01:04PM
(#21774444)
jison works fairly well, and is mostly compatible with bison.
- https://tomassetti.me/parsing-in-javascript/