help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sharing grammar rules across grammars?


From: Jeremy Elson
Subject: Re: sharing grammar rules across grammars?
Date: Wed, 18 Feb 2004 17:59:21 -0800

I read that thread 3 times :-), but didn't realize until today that it
helps me with my problem as well.

It's sort of messy, though... all I really need is for bison to have
an "include" statement.  That seems easier than munging the two
parsers together into one big grammar, only half of which is used.

Hans Aberg writes:
>At 13:10 -0800 2004/02/17, Jeremy Elson wrote:
>>I have two languages that have several features in common.  Is there
>>an easy way to share rules across grammars?  (Both grammars use the
>>same lexer; the token values are the same.)
>
>You might check the thread "2 grammars, 1 lexer" a week ago.
>
>List-Archive: <http://mail.gnu.org/pipermail/help-bison>
>
>
>  Hans Aberg
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]