04-26-04 11:34 AM
On Mon, 26 Apr 2004 09:56:29 +0000, Daniel Haude wrote:
> Hello,
> I've written a simple lexer in flex that is supposed to pick only certain
> parts of the input file and to ignore the (unmatched) rest. It works fine
> except that it copies the unmatched stuff to stdout, as it's supposed
> to. I got rid of that behavior by reassigning yyout appropriately, but I
> was wondering if the "default rule" was somehow user accessible (meaning
> that I'd like to write my own "action" for unmatched stuff instead of
> automatically ECHOing to yyout).
>
> Is this possible? Couldn't find anything in the docs.
Isnt this usually done by adding a "catch-all" rule that does nothing ?!
%%
your
rules
. /* ignore anything else */
--
Nils Olav Selåsdal
System Engineer
w w w . u t e l s y s t e m s . c o m
[ Post a follow-up to this message ]
|