[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yy_scan_string
From: |
never2di |
Subject: |
yy_scan_string |
Date: |
Wed, 14 Oct 2009 02:14:34 -0700 (PDT) |
I'm a newbie to Bison + Flex. and I'm having trouble in getting
yy_scan_string to work. I have tried the following
YY_BUFFER_STATE my_string_buffer = yy_scan_string(my_string);
yyparse();
yy_delete_buffer(my_string_buffer );
the parser errors out with a syntax error at the first token. I have
verified that the grammar and the content of 'my_string' works using
yyrestart(yyin) and also with yy_create_buffer() through a file.
Is there something special state that I have to set flex in before I call
yyparse()?
if not what is that I'm doing wrong and what needs to be done?
bison (GNU Bison) 2.4
Thanks :handshake:
--
View this message in context:
http://www.nabble.com/yy_scan_string-tp25887754p25887754.html
Sent from the Gnu - Bison - Help mailing list archive at Nabble.com.
- yy_scan_string,
never2di <=