help-flex
[Top][All Lists]
Advanced

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

RE: returning two tokens


From: Vincent Zweije
Subject: RE: returning two tokens
Date: Wed, 3 Dec 2003 17:02:05 +0100

Buday Gergely <address@hidden> wrote:

> I have to return two tokens in response to a single character. How
> can I write this nicely using flex?

Assuming there's a parser on top of the scanner, it's probably
clearer and easier to use an epsilon rule in the parser.
Reducing by that rule will generate the extra non-terminal
for you just when you need it.

Think again if you really need to return two tokens.  Vincent.




reply via email to

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