A custom lexer instance: lex is called lazily once per parse and its iterator (or iterable — a generator is both) is pulled one token at a time, interleaved with the parser. Synchronous only (parse is sync).
lex
parse
A custom lexer instance:
lexis called lazily once per parse and its iterator (or iterable — a generator is both) is pulled one token at a time, interleaved with the parser. Synchronous only (parseis sync).