| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
7.2::
LR
LR.Grammar_parser

# Module LR.Grammar_parser

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 error

  `int LR.Grammar_parser.error`

Description

  Error code from the parsing.