> or change the grammar not to need unlimited stack space.
> it says

yes.  you're right.  i should have fixed this properly
before posting.

> fields                : '\n'
>                       { yydone = 1; }
>               | field '\n'
>               | field '\n' fields
>               ;
> 
> but i think you can change it to
> 
> fields        : fieldlist '\n'
>                       { yydone = 1; }
>               ;
> 
> fieldlist     :
>               | fieldlist field '\n'
>               ;

i actually used this to avoid shift/reduce conflict
warnings

msg             : fields
                | unixfrom '\n' fields
                ;
fields          : fieldlist '\n'
                        { yydone = 1; }
                ;
fieldlist               : field '\n'
                | fieldlist field '\n'
                ;

- erik

Reply via email to