News for hackers. Stuff that matters.
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?
Re:Write a parser with JavaScript by bd82 on Thursday December 12, 2019 @01:34PM (#21774739)
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)
Re:Write a parser with JavaScript by dmitriid on Thursday December 12, 2019 @12:04PM (#21773680)
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.