scriptreader.h

changeset 58
bc9317d1b9c9
parent 56
384c5605bda9
child 59
891b9e6ee139
equal deleted inserted replaced
57:96f60ca748a0 58:bc9317d1b9c9
89 int fc; 89 int fc;
90 90
91 unsigned int pos[MAX_FILESTACK]; 91 unsigned int pos[MAX_FILESTACK];
92 unsigned int curline[MAX_FILESTACK]; 92 unsigned int curline[MAX_FILESTACK];
93 unsigned int curchar[MAX_FILESTACK]; 93 unsigned int curchar[MAX_FILESTACK];
94 BlockInformation blockstack[MAX_STRUCTSTACK]; 94 BlockInformation scopestack[MAX_STRUCTSTACK];
95 long savedpos[MAX_FILESTACK]; // filepointer cursor position 95 long savedpos[MAX_FILESTACK]; // filepointer cursor position
96 str token; 96 str token;
97 int commentmode; 97 int commentmode;
98 long prevpos; 98 long prevpos;
99 str prevtoken; 99 str prevtoken;
126 DataBuffer* ParseCommand (CommandDef* comm); 126 DataBuffer* ParseCommand (CommandDef* comm);
127 DataBuffer* ParseExpression (int reqtype); 127 DataBuffer* ParseExpression (int reqtype);
128 DataBuffer* ParseAssignment (ScriptVar* var); 128 DataBuffer* ParseAssignment (ScriptVar* var);
129 int ParseOperator (bool peek = false); 129 int ParseOperator (bool peek = false);
130 DataBuffer* ParseExprValue (int reqtype); 130 DataBuffer* ParseExprValue (int reqtype);
131 void PushBlockStack (); 131 void PushScope ();
132 132
133 // preprocessor.cxx: 133 // preprocessor.cxx:
134 void PreprocessDirectives (); 134 void PreprocessDirectives ();
135 void PreprocessMacros (); 135 void PreprocessMacros ();
136 DataBuffer* ParseStatement (ObjWriter* w); 136 DataBuffer* ParseStatement (ObjWriter* w);
192 MARKTYPE_INTERNAL, // internal structures 192 MARKTYPE_INTERNAL, // internal structures
193 }; 193 };
194 194
195 // Block types 195 // Block types
196 enum { 196 enum {
197 BLOCKTYPE_UNSET = 0, 197 SCOPETYPE_UNSET = 0,
198 BLOCKTYPE_IF, 198 SCOPETYPE_IF,
199 BLOCKTYPE_WHILE, 199 SCOPETYPE_WHILE,
200 BLOCKTYPE_FOR, 200 SCOPETYPE_FOR,
201 BLOCKTYPE_DO, 201 SCOPETYPE_DO,
202 BLOCKTYPE_SWITCH, 202 SCOPETYPE_SWITCH,
203 BLOCKTYPE_ELSE, 203 SCOPETYPE_ELSE,
204 }; 204 };
205 205
206 #endif // __SCRIPTREADER_H__ 206 #endif // __SCRIPTREADER_H__

mercurial