Next: lang yy, Previous: lang lr0, Up: Lexing and Parsing
[todo: write blurb]
Return the rest of the value stack vs, excluding the top value.
Return the rest of the value stack vs, excluding the first n values.
For grammar g, return the result of adding state to the context stack.
Return the rest of the context stack, excluding the first n states.
For grammar g, return the parser state associated with item set is, creating it if necessary.
Return the initial parser state derived from grammar g's
item-set-start-kernel. Cache the return value.
Given grammar g's state and the current token-type, determine the action to take (shift, reduce, or error) in module's environment, and return the form:
(ACTION [DATA])Here
DATAis next state (if shifting), a list of the production functions (if reducing), or empty (if error). Cache the return value.
Do parsing for grammar g that uses token-providing procedure lexer and error-handling procedure parser-error, with reductions taking place in the environment of module module.
[At this time, I don't know if this procedure returns. So far, I've only tested with a throw in the reduction body. –ttn]
There is also a drop-in replacement for (lang lr1) that provides
some additional debugging facilities: (lang lr1-debug).
Check state-stack-entry specific invariants for obj. (Actually, at this time, no checks are done.) Return obj.
Display state stack entry state to the current output port.
See lang debug-common, for other debugging facilities.