333 reputation
bio website twitter.com/rystsov
location St. Petersburg, Russia
age 27
visits member for 3 years, 7 months
seen Apr 8 at 3:08

comment Is there a BNF grammar of the TeX language?
Thank you for this comprehensive answer, I knew nothing about catcode. It seems that parsing tex is not a simple task as I thought before. My final task is to extract all math formulas from a set of articles (in tex), I thought I could parse them to do it, but now I'm not sure about it. What approach could you recommend? I think casual articles do not use catcode, so to extract correct math formulas I may parse tex and process newcommand. The alternative is to try use existing engine to parse and extract the needed information from its internals.