Skip to main content

Module parse

Module parse 

Source

Structs§

ParsedGrammar
Parsed grammar: rules + symbol table.

Functions§

decode_utf8_string
Decode a full string to codepoints, with partial UTF-8 state handling. Returns (codepoints_with_terminating_zero, partial_state).
parse
Parse a GBNF grammar string into rules and symbol table.