parser.cxx

changeset 18
dbcc3b784234
parent 17
b4fcc69e426a
child 19
66993500719f
equal deleted inserted replaced
17:b4fcc69e426a 18:dbcc3b784234
147 ParserError ("unexpected `}`"); 147 ParserError ("unexpected `}`");
148 148
149 // Closing brace.. 149 // Closing brace..
150 w->Write (dataheader); 150 w->Write (dataheader);
151 g_CurMode = MODE_TOPLEVEL; 151 g_CurMode = MODE_TOPLEVEL;
152
153 MustNext (";");
152 } else { 154 } else {
153 // Check if it's a command. 155 // Check if it's a command.
154 CommandDef* comm = GetCommandByName (token); 156 CommandDef* comm = GetCommandByName (token);
155 if (comm) 157 if (comm)
156 ParseCommand (comm, w); 158 ParseCommand (comm, w);

mercurial