[Top]
Parser
Parser.LR
Parser.LR.GrammarParser
|
Module Parser.LR.GrammarParser
- Description
This module generates an LR parser from a grammar specified according
to the following grammar:
directives : directive ;
directives : directives directive ;
directive : declaration ;
directive : rule ;
declaration : "%token" terminals ";" ;
rule : nonterminal ":" symbols ";" ;
rule : nonterminal ":" symbols action ";" ;
symbols : symbol ;
symbols : symbols symbol ;
terminals : terminal ;
terminals : terminals terminal ;
symbol : nonterminal ;
symbol : "string" ;
action : "{" "identifier" "}" ;
nonterminal : "identifier" ;
terminal : "string";
- Variable
lr_error
int Parser.LR.GrammarParser.lr_error
- Description
Error code from the parsing.
|