next up previous contents index
Next: Production rules Up: Parser Specification Previous: Precedence

expect: n

The declaration expect n specifies that there should be n shift/reduce errors in the grammar. If the actual grammar deviates from this number, a warning will be generated. The alternative form expect: _ suppresses all warnings. The syntax is:

Expect_Decl ::=expect: Integer ; expects n shift/reduce errors
  |  expect: _ ; expects many shift/reduce errors

This declaration is optional. If omitted, warnings will be printed if parser conflicts are found during parser generation.



Allen Leung
Mon Apr 7 14:33:55 EDT 1997