SYNOPSIS
See
File pascalenumeratedvsrange.eyp in examples/debuggintut/
The Bison manual http://www.gnu.org/software/bison/manual/html_mono/bison.html
Compile it with something like:
eyapp -TC pascalenumeratedvsrangenested.eyp
if your Perl version is higher than 5.10, otherwise:
eyapp -T -b '/usr/bin/env perl5.10.1' -B '' pascalenumeratedvsrangenested.eyp
Substitute the perl5.10.1 part for whatever you have, but be sure you use a version of the Perl nterpreter equal or higher than 5.10. Be also sure to have installed the last version of Regexp::Grammars. Run it with this options:
$ ./pascalenumeratedvsrangenested.pm -t -i -m 1 -c 'type e = (x, y, z);'
Try also these inputs:
type e = (x) .. (y);
type r = (x) .. y ;
type r = (x+2)*3 .. y/2 ;
type e = (x, y, z);
type e = (x);
type e = (x, y, z) .. (u+v);