| 501 | } |
| 502 | |
| 503 | bool Parser::ParseString(Parser::Context &context, std::string_view *out) { |
| 504 | if (context.Tok().type != TokenType::String) { |
| 505 | context.Error("Expected string"); |
| 506 | return false; |
| 507 | } |
| 508 | |
| 509 | *out = context.Next().str; |
| 510 | return true; |
| 511 | } |
| 512 | |
| 513 | bool Parser::ParseInt(Parser::Context &context, int64_t* out) { |
| 514 | if (context.Tok().type != TokenType::Int) { |