| 1327 | } |
| 1328 | |
| 1329 | bool ParseVariableDefineSub(Lexeme** str) |
| 1330 | { |
| 1331 | TypeInfo* currType = GetSelectedType(); |
| 1332 | if(!ParseAddVariable(str)) |
| 1333 | ThrowError((*str)->pos, "ERROR: unexpected symbol '%.*s' after type name. Variable name is expected at this point", (*str)->length, (*str)->pos); |
| 1334 | |
| 1335 | while(ParseLexem(str, lex_comma)) |
| 1336 | { |
| 1337 | SelectTypeByPointer(currType); |
| 1338 | if(!ParseAddVariable(str)) |
| 1339 | ThrowError((*str)->pos, "ERROR: next variable definition excepted after ','"); |
| 1340 | AddTwoExpressionNode(); |
| 1341 | } |
| 1342 | return true; |
| 1343 | } |
| 1344 | |
| 1345 | bool ParseAlignment(Lexeme** str) |
| 1346 | { |
no test coverage detected