| 317 | } |
| 318 | |
| 319 | Action* Parser::parseCallAction() |
| 320 | { |
| 321 | CallAction act; |
| 322 | |
| 323 | act.name = getToken(token, Token::TYPE_IDENTIFIER).text; |
| 324 | |
| 325 | getToken(token, TOKEN('(')); |
| 326 | do |
| 327 | { |
| 328 | act.addParam(getToken(token, Token::TYPE_IDENTIFIER).text); |
| 329 | } while(lexer->getToken(token).type == ','); |
| 330 | |
| 331 | if (token.type == ')') |
| 332 | return new CallAction(act); |
| 333 | |
| 334 | syntaxError(token); |
| 335 | } |
| 336 | |
| 337 | Action* Parser::parseDefAction(DefAction::DefType dt) |
| 338 | { |