Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2006
Calling yyparse from another function
I want to give input to the yacc file from a QT dialog box. Is there a way where I can pass a string directly to yyparse() or should I write the string from the dialog into a file and then read the input from this file?
How do I read the contents of a file as input to the parser? Also can I rename the main function in the yacc file as something else and call this function from my application program while passing the input string from the dialog box to be parsed?
Please help!! I am desperate!