On Tue, 2 Aug 2004, John Cohen wrote:

>
>in ::= in stmt ENDLINE.
>
>But that doesn't seem to work in lemon.  I've also tried making the 2nd
>statement right recursive, but that doesn't work either because it doesn't
>seem to ever reduce all the way.
>
>Any ideas?  Much thanks to all.


Just make the start token a simple wrapper for a right recursive token to
allow multiple lines.

in ::= stmt_list .

stmt_list ::= stmt_list stmt ENDLINE .
stmt_list ::= stmt ENDLINE .


That should do it.


>
>John
>

Christian

-- 
    /"\
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
     X                           - AGAINST MS ATTACHMENTS
    / \

Reply via email to