help-bison
[Top][All Lists]
Advanced

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

Re: start of line ?


From: John
Subject: Re: start of line ?
Date: Thu, 6 Mar 2003 20:02:08 -0500 (EST)

>
> either a 'B', a 'C', or an 'E' at the start of a line, then anything, then a
> '$'.
>
> I'm thinking the only way to look for this in bison is to have flex return
> START_COMMENT when it finds a newline followed by a B, etc. so it would be
>

Flex knows when it is at the beginning of a line. Just use flex to
discard the comments:

        ^[ABC].*\n    /* discard */;







reply via email to

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