TeX Parser © BURGHARD Eric (© not serious, just for fun ;-) for GoldED 4.4.1 © Dietmar Eilert Introduction ============ This parser do what many TeX parsers already do, but i think there are some original features: - long instructions (\ follow by any number of alphas) - short instruction (one spec car after \) - hidden instructions (contains @ --- latex2e \makeatletter) - groups ('{' and '}') - options ('[' and ']') - numbers ([0-9]+['.'|',']? or ['.'|',']?[0-9]+ or '[0-7]+ or "[0-9A-F]+) - dimensions (number follow by a length unit "cm"|"in"|...) - comments (begin with '%') - exponent-lower ('^' and '_' respectively in math mode) - math mode (enclose between '$' or '\(' '\)' pair) - uncutable space ('~') - macros arguments ('#' follow by [1-7]) - spell check error (ISpell must be running) - localized (through envtex.catalogs) The Spell checking part is roughly the same than dietmar's WarpSpell, but without the part that launch ISpell (it must be running) -- so a good idea is to use words.api. Programming notes ================= The parser is not very fast, especially when you use ispell version, because it respects LR1. To make it faster, you just have to enroll my states cases. However you'll find 2 versions of the parser, one with spell checking (TeX.parser) and the other one without (TeX.parser_nospell --- you should rename it before install) Send me your suggestions. Have fun.