Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,196 of 2,753    |
|    Sumeet to All    |
|    Flex/Bison: Unable to parse multiple SQL    |
|    12 Jan 08 14:00:31    |
      From: sumeet.sl@gmail.com              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]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca