1 /* 2 * parser classes for MySpell 3 * 4 * implemented: text, HTML, TeX 5 * 6 * Copyright (C) 2002, Laszlo Nemeth 7 * 8 */ 9 10 #ifndef _LATEXPARSER_HXX_ 11 #define _LATEXPARSER_HXX_ 12 13 14 #include "textparser.hxx" 15 16 /* 17 * HTML Parser 18 * 19 */ 20 21 class LaTeXParser : public TextParser 22 { 23 int pattern_num; // number of comment 24 int depth; // depth of blocks 25 int arg; // arguments's number 26 int opt; // optional argument attrib. 27 28 public: 29 30 LaTeXParser(const char * wc); 31 LaTeXParser(unsigned short * wordchars, int len); 32 virtual ~LaTeXParser(); 33 34 virtual char * next_token(); 35 36 private: 37 38 int look_pattern(int col); 39 40 }; 41 42 43 #endif 44 45