l0_parser namespace

Classes

class _ParseSyncException
Internal exception used for error recovery during parsing.
class Parser
Recursive descent parser for L0.

Functions

auto token_len(Token tok) -> int
Calculate the display length of a token.

Function documentation

int l0_parser::token_len(Token tok)

Calculate the display length of a token.

Parameters
tok The token to measure.
Returns The length of the token's text, accounting for literal quotes.