View previous topic :: View next topic |
Author |
Message |
eminency n00b
Joined: 27 Aug 2002 Posts: 21 Location: Korea
|
Posted: Thu Dec 26, 2002 2:08 am Post subject: Question about Yacc(or Bison) |
|
|
I'm making SQL parser with bison.
I need to pass string(char *) to yyparse(), but I think that yyparse() may get stdin or FILE *.
Do you know any method of passing string to bison? Please help. _________________ May the force be with you |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Thu Dec 26, 2002 2:52 am Post subject: |
|
|
You can use yy_scan_string or yy_scan_bytes for this. You can 'man flex' for more details (a little bit more ). You can also google for examples on how to use this. |
|
Back to top |
|
|
|