Skip to main content

program_literals

Function program_literals 

Source
pub fn program_literals() -> &'static LiteralTable
Expand description

Literal table for the program grammar (used for parsing full programs).

Use with parse_error_to_miette so that “expected literal#n” in diagnostics is resolved to the actual token text (e.g. "var", "function").