Skip to main content

Module parser

Module parser 

Source
Expand description

Iterative parser using an explicit stack: tokens -> AST. Nesting is capped at MAX_NESTING.

Constants§

MAX_NESTING
The deepest nesting parse accepts; deeper patterns are rejected with the error “pattern nests too deeply”.

Functions§

parse
Parse a complete pattern string into an AST.