Re: Selective Compilation

2011-02-07 Thread Tejas Kajarekar
Hi Martin, If I understand your question correctly, here is a way to have multiple scanners and parsers in the same program. In Flex, you can use the --prefix = NEW_PREFIX. This will change the default "yy" prefix to NEW_PREFIX, So yylex, yytext, yyout, etc., *including yywrap()*, will change to N

Re: Selective Compilation

2011-02-07 Thread Tejas Kajarekar
Hi Martin, If I understand your question correctly, here is a way to have multiple scanners and parsers in the same program. In Flex, you can use the --prefix = NEW_PREFIX. This will change the default "yy" prefix to NEW_PREFIX, So yylex, yytext, yyout, etc., *including yywrap()*, will change to N

please help me with this

2009-12-19 Thread Tejas Kajarekar
Hello, My name is Tejas. I am trying to use Flex and Bison to parse (and convert) one file to another format. Currently, I am not bothered about conversion, just the parsing. I have never used either tools, and what my problem is, may be trivial. (Worth laughing) Here is my problem: I am going to a