src/Parser.h

changeset 107
55c2bcd8ed5c
parent 106
9174be9ac686
child 108
6409ece8297c
equal deleted inserted replaced
106:9174be9ac686 107:55c2bcd8ed5c
105 EType type; 105 EType type;
106 int index; 106 int index;
107 EWritability writelevel; 107 EWritability writelevel;
108 int value; 108 int value;
109 String origin; 109 String origin;
110 bool isarray;
110 111
111 inline bool IsGlobal() const 112 inline bool IsGlobal() const
112 { 113 {
113 return statename.IsEmpty(); 114 return statename.IsEmpty();
114 } 115 }
132 ByteMark* mark1; 133 ByteMark* mark1;
133 ByteMark* mark2; 134 ByteMark* mark2;
134 EScopeType type; 135 EScopeType type;
135 DataBuffer* buffer1; 136 DataBuffer* buffer1;
136 int globalVarIndexBase; 137 int globalVarIndexBase;
138 int globalArrayIndexBase;
137 int localVarIndexBase; 139 int localVarIndexBase;
138 140
139 // switch-related stuff 141 // switch-related stuff
140 List<CaseInfo>::Iterator casecursor; 142 List<CaseInfo>::Iterator casecursor;
141 List<CaseInfo> cases; 143 List<CaseInfo> cases;
142 List<Variable*> localVariables; 144 List<Variable*> localVariables;
143 List<Variable*> globalVariables; 145 List<Variable*> globalVariables;
146 List<Variable*> globalArrays;
144 }; 147 };
145 148
146 // ============================================================================ 149 // ============================================================================
147 // 150 //
148 class BotscriptParser 151 class BotscriptParser

mercurial