help-flex
[Top][All Lists]
Advanced

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

Re: scanning string


From: John W. Millaway
Subject: Re: scanning string
Date: Mon, 14 Jan 2002 12:05:00 -0800 (PST)

> "yy_scan_string(const char* str)". Before this shall I rewrite the  YY_INPUT
> macro so that it'll read through the string not from the file ? Where should
> I call this YY_INPUT ? After calling YY_INPUT,
> where should I call yy_scan_string( ). How shall I pass my char string so
> that it should start parsing ( I mean what should be my entry point into
> flex& bison)?

All you need to do is call yy_scan_string BEFORE the first call to yylex(). 
There is no need to touch YY_INPUT. (This question pops up frequenty, so I
guess the manual is unclear.)

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



reply via email to

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