scriptreader.h

changeset 36
a8838b5f1213
parent 35
3d3f6ed40171
child 37
c349dca807f9
equal deleted inserted replaced
35:3d3f6ed40171 36:a8838b5f1213
46 #include "objwriter.h" 46 #include "objwriter.h"
47 #include "commands.h" 47 #include "commands.h"
48 48
49 #define MAX_FILESTACK 8 49 #define MAX_FILESTACK 8
50 50
51 class ScriptVar;
52
51 class ScriptReader { 53 class ScriptReader {
52 public: 54 public:
53 // ==================================================================== 55 // ====================================================================
54 // MEMBERS 56 // MEMBERS
55 FILE* fp[MAX_FILESTACK]; 57 FILE* fp[MAX_FILESTACK];
87 bool BoolValue (); 89 bool BoolValue ();
88 90
89 void ParserError (const char* message, ...); 91 void ParserError (const char* message, ...);
90 void ParserWarning (const char* message, ...); 92 void ParserWarning (const char* message, ...);
91 93
92 void FinalChecks ();
93
94 // parser.cxx: 94 // parser.cxx:
95 void BeginParse (ObjWriter* w); 95 void BeginParse (ObjWriter* w);
96 DataBuffer* ParseCommand (CommandDef* comm); 96 DataBuffer* ParseCommand (CommandDef* comm);
97 DataBuffer* ParseExpression (int reqtype); 97 DataBuffer* ParseExpression (int reqtype);
98 int ParseOperator (); 98 DataBuffer* ParseAssignment (ScriptVar* var);
99 int ParseOperator (bool peek = false);
99 DataBuffer* ParseExprValue (int reqtype); 100 DataBuffer* ParseExprValue (int reqtype);
100 101
101 // preprocessor.cxx: 102 // preprocessor.cxx:
102 void PreprocessDirectives (); 103 void PreprocessDirectives ();
103 void PreprocessMacros (); 104 void PreprocessMacros ();

mercurial