10 ms·
Luckily there are many Parsing Libraries in the JavaScript eco-system, So we won't have to find out if this convoluted approach is worthwhile :) - https://toma
by bd82 7y ago
Luckily there are many Parsing Libraries in the JavaScript eco-system, So we won't have to find out if this convoluted approach is worthwhile :)
- https://tomassetti.me/parsing-in-javascript/ https://tomassetti.me/parsing-in-javascript/
- asdasdasdasdwd 7y agoBNF 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)