SYNOPSIS

This example shows how the dynamic conflict resolution technique makes possible to change the behavior of the parser at the programmer's command.

Compile it with:

eyapp -C dynamicgrammar.eyp 

Run with:

$ ./dynamicgrammar.pm -f input_for_dynamicgrammar.txt 

The file input_for_dynamicgrammar.txt contains:

2-1-1 # left: 0
RIGHT
2-1-1 # right: 2
LEFT
3-1-1 # left: 1
RIGHT
3-1-1 # right: 3

SEE ALSO

File examples/debuggingtut/dynamicgrammar0.eyp is similar to this grammar, but the shift-reduce conflict is left unsolved