home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 275 / DPCS0111DVD.ISO / Toolkit / Audio-Visual / VirtualDub / Source / VirtualDub-1.9.10-src.7z / src / Lina / h / parser.h < prev   
Encoding:
C/C++ Source or Header  |  2009-09-14  |  435 b   |  26 lines

  1. #ifndef f_LINA_PARSER_H
  2. #define f_LINA_PARSER_H
  3.  
  4. void error(const char *format, ...);
  5.  
  6. class TreeParser {
  7. public:
  8.     TreeParser(TreeDocument *doc);
  9.  
  10.     void ParseFile(const char *fname);
  11.  
  12. protected:
  13.     void PushFile(const char *fname);
  14.     bool PopFile();
  15.     int Next();
  16.     int NextRequired();
  17.     TreeNode *AllocNode();
  18.     TreeNode *ParseInline(int& c);
  19.     TreeNode *ParseTag();
  20.  
  21. protected:
  22.     TreeDocument *mpDocument;
  23. };
  24.  
  25. #endif
  26.