3 ms·
This looks very polished and potentially useful. Could you point us to examples of different grammar files. How hard would it be to make a LaTeX parser based
by ivan_ah 11y ago
This looks very polished and potentially useful.
Could you point us to examples of different grammar files.
How hard would it be to make a LaTeX parser based on Chevrotain?
- bd82 11y agoThanks for the compliment. I Still need to produce more examples (contributions are welcome :) ) There is one bigger (but incomplete example) of ECMAScript 5.1. https://github.com/SAP/chevrotain/blob/master/examples/typescript_ecma5/src/ecmascript5_parser.ts https://github.com/SAP/chevrotain/blob/master/examples/types... It is written in Typescript. About LaTex: I'm not familiar with LaTex, However if I understand correctly it is based on Tex which is not a context free language. Meaning it can't be parsed with standard parsing tools. See details here: http://tex.stackexchange.com/questions/4201/is-there-a-bnf-grammar-of-the-tex-language http://tex.stackexchange.com/questions/4201/is-there-a-bnf-g...