help-bison
[Top][All Lists]
Advanced

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

Re: Include %token and %union declaration from a shared file


From: Hans Åberg
Subject: Re: Include %token and %union declaration from a shared file
Date: Thu, 7 Jul 2016 18:01:46 +0200

> On 7 Jul 2016, at 14:47, Alexander Barkov <address@hidden> wrote:

> In our application we need to have two parsers using:
> 
> - the same yylex function (the tokenizer)
> - the same set of terminal symbols (%token)
> - the same YYSTYPE structure (%union)
> 
> but implementing very different syntax rules.

You may have to generate those .yy files by some other means, say M4 or other 
text processing program. I have a vague memory of similar topics discussed 
before, but I not recall the resolution. 





reply via email to

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