| 511 | } |
| 512 | |
| 513 | bool Parser::ParseInt(Parser::Context &context, int64_t* out) { |
| 514 | if (context.Tok().type != TokenType::Int) { |
| 515 | context.Error("Expected integer"); |
| 516 | return false; |
| 517 | } |
| 518 | |
| 519 | *out = context.Next().int64; |
| 520 | return true; |
| 521 | } |
| 522 | |
| 523 | bool Parser::ParseResourceType(Parser::Context &context, ResourceType *out) { |
| 524 | // Parse type |