Documentation
¶
Overview ¶
Package parser implements spok's parser.
Spok is a very simple mostly declarative language and as such, the parser is incredibly simple. It is a simple top-down parser with a very small initial state space and requires only 1 token of lookahead.
It switches on the token it encounters to process the appropriate ast.Node (parseXXX methods), appending each to the list of nodes as it goes.
If the parser encounters an error, either an ERROR token from the lexer, or an error of it's own making it will immediately return with the AST it's managed to parse so far and the error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.