SYNOPSIS

This example illustrates how to express the end of input (EOI) in the header section: use ''. I believe the fact that EOI can be involved in a conflict resolution has been overlooked.

It attempts to solve the conflict in typicalrr.eyp by giving priority only to the 'empty rules'. Warning: Don't look too much at it if you are new to LALR conflict resolution.

Compile it with

eyapp -b '' typicalrrwithprec.eyp

Execute it with:

./typicalrrwithprec.pm -t

Try inputs 4 5, a b and 4 5 a b.

SEE ALSO

see typicalrr.eyp, correcttypicalrr.eyp and typicalrr_fixed.eyp