I have a lex and yacc based parser that reads it's imput from stdin.
How to "tell" lex to read from a string?
I have faced siilar issue before.
What i did i printed the string to a file and opened the file and assigned it to yyin so that lex can read it.
There may be a better solution for this also.
Comment