Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Flex/Bison: Una...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 2294 of 2528
Post > Topic >>

Flex/Bison: Unable to parse multiple SQL commands from a file.

by Sumeet <sumeet.sl@[EMAIL PROTECTED] > Jan 12, 2008 at 02:00 PM

Hi,

I have created an SQL parser, which works fine when I enter commands
from the terminal. When I enter multiple commands, it parses and
executes each one of them. No problems with grammar, etc. But when I
try to read them from a file, it just parses the first command and
ignores the rest of them, an ftell on yyin after the yyparse()
indicates that it has read the entire file.

In the flex file, I'm switching to another state when I encounter a
';' In that state, if I get a '\n', I switch to the default state and
return 0. In the default state, all \n's are ignored.

I have tried a lot of things, but I'm unable to parse all the commands
from the file. Any suggestions to solve this problem?? Please help!

Thanks,
Sumeet
[Does your parser handle one SQL statement or a series of them? -John]
 




 1 Posts in Topic:
Flex/Bison: Unable to parse multiple SQL commands from a file.
Sumeet <sumeet.sl@[EMA  2008-01-12 14:00:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 12:40:01 CDT 2008.