| 266 | } |
| 267 | |
| 268 | void Parser::parseConstant(const TypeRef& typeRef, const string& name) |
| 269 | { |
| 270 | Constant* constant = new Constant(); |
| 271 | interface->constants.push_back(constant); |
| 272 | |
| 273 | constant->typeRef = typeRef; |
| 274 | constant->name = name; |
| 275 | constant->expr = parseExpr(); |
| 276 | |
| 277 | getToken(token, TOKEN(';')); |
| 278 | } |
| 279 | |
| 280 | Action* Parser::parseAction(DefAction::DefType dt) |
| 281 | { |