Reentrant yy_scan_string impossible?

2010-09-08 Thread Bart Kus
Hello, Using flex 2.5.35 and bison 2.4.2. Setting up a yy_scan_string() like so: yyscan_t scanner; clilex_init(&scanner); YY_BUFFER_STATE lex_buff = cli_scan_string(cmd, scanner); if(cliparse(*this)) clierror(*this, cmd); cli_delete_buffer(lex_buff, sca

Re: yy_scan_string

2009-10-14 Thread never2di
Luca-63 wrote: > > never2di ha scritto: >> 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(); >

Re: yy_scan_string

2009-10-14 Thread Luca
never2di ha scritto: 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 er

Re: yy_scan_string

2009-10-14 Thread never2di
Philip Herron wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > never2di wrote: >> 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_stri

Re: yy_scan_string

2009-10-14 Thread Philip Herron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 never2di wrote: > 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_delet

yy_scan_string

2009-10-14 Thread never2di
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 tok