| 421 | } |
| 422 | |
| 423 | index_t ParseContext::parse_dataidx() { |
| 424 | if (tok_.peek().type == TokenType::Id) { |
| 425 | Token t = tok_.consume(); |
| 426 | if (!data_map_.contains(t.text)) |
| 427 | throw Exception::Parse("data id '" + t.text + "' not found", {t.line, t.column}); |
| 428 | return data_map_[t.text]; |
| 429 | } |
| 430 | return (index_t)parse_u32(); |
| 431 | } |
| 432 | |
| 433 | index_t ParseContext::parse_localidx() { |
| 434 | if (tok_.peek().type == TokenType::Id) { |