|
From: | Nicolas Peyrussie |
Subject: | Re: newbie question |
Date: | Thu, 31 Mar 2005 09:21:56 +0200 |
User-agent: | Mozilla Thunderbird 0.9 (X11/20041127) |
Hi,You can do both of them. If you use yylex() with yyin (containing a stream) you can parse the whole file. Else you can use C functions as fgets() to get a line of you text and then use yy_scan_string() to parse it. The best way to find answers is to read the man pages, since there are not a lot of examples on the web, it is well explained though.
address@hidden wrote:
hi, i'm kind of new to flex and wanted to know if it works on the input file a line at a time or if it reads in the whole file and processes it a token at a time. sorry for the newbie question. thx. _______________________________________________ Help-flex mailing list address@hidden http://lists.gnu.org/mailman/listinfo/help-flex
[Prev in Thread] | Current Thread | [Next in Thread] |