Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Parser.h
Go to the documentation of this file.
1 /* Project nGen
2  John DiCamillo Software Consulting
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: parser
6  FILE: parser.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Declaration of the generic Parser class
13 */
14 
15 #ifndef PARSER_H
16 #define PARSER_H
17 
18 #include "text.h"
19 #include "term.h"
20 
21 // +-------------------------------------------------------------------+
22 
23 class Reader;
24 class Scanner;
25 
26 // +-------------------------------------------------------------------+
27 
28 class Parser
29 {
30 public:
31  Parser(Reader* r = 0);
32  ~Parser();
33 
34  Term* ParseTerm();
36  Term* ParseTermRest(Term* base);
37  TermList* ParseTermList(int for_struct);
40 
41 private:
42  Reader* reader;
43  Scanner* lexer;
44 };
45 
46 #endif