src/Parser.h

changeset 111
87d9ebd3ef34
parent 110
7a7a53f1d51b
child 112
def56932f938
equal deleted inserted replaced
110:7a7a53f1d51b 111:87d9ebd3ef34
42 #define MAX_MARKS 512 42 #define MAX_MARKS 512
43 43
44 class DataBuffer; 44 class DataBuffer;
45 class Lexer; 45 class Lexer;
46 class Variable; 46 class Variable;
47
48 // ============================================================================
49 //
50 struct UndefinedLabel
51 {
52 String name;
53 ByteMark* target;
54 };
55 47
56 // ============================================================================ 48 // ============================================================================
57 // Mark types 49 // Mark types
58 // 50 //
59 named_enum MarkType 51 named_enum MarkType
232 String mCurrentState; 224 String mCurrentState;
233 bool mStateSpawnDefined; 225 bool mStateSpawnDefined;
234 bool mGotMainLoop; 226 bool mGotMainLoop;
235 int mScopeCursor; 227 int mScopeCursor;
236 bool mCanElse; 228 bool mCanElse;
237 List<UndefinedLabel> mUndefinedLabels;
238 int mHighestGlobalVarIndex; 229 int mHighestGlobalVarIndex;
239 int mHighestStateVarIndex; 230 int mHighestStateVarIndex;
240 231
241 // How many bytes have we written to file? 232 // How many bytes have we written to file?
242 int mNumWrittenBytes; 233 int mNumWrittenBytes;

mercurial