Skip to main content

Module parser

Module parser 

Source

Structs§

Parser

Functions§

parse_block_from_str
Parse a statement list from s and wrap as do { ... } (for #{...} interpolation).
parse_expression_from_str
Parse a single expression from s (e.g. contents of @{ ... } inside a double-quoted string).
parse_format_value_line
parse_slice_indices_from_str
Comma-separated expressions on a format value line (below a picture line). Parse [ ... ] contents for @a[...] (same rules as parse_arg_list / comma-separated indices).