Next: lang lr0, Previous: lang lex, Up: Lexing and Parsing
[todo: write blurb]
Return the list of symbols in the expansion of a production p.
Return the body of a productions reduction procedure from production p.
Return the starting symbol of grammar g.
By convention, the first production determines the start symbol but in fact, any symbol could be used. A grammar can have mulitple entry points, for example.
Return the non-terminal symbols of grammar g.
The list is computed by looking at the lhs of each production.
Return the list of terminals of grammar g.
The list is computed by looking at all the symbols used in expansions, and subtracting out the non-terminals.
Return those non-terminals of grammar g that can derive the empty string.