Piping to lex/bison application
Posted on 2009-04-02
I've written a application using flex and bison to parse some data.
In psuedo code, I'd like to do this:
A = Parser(datatostdin)
The purpose of this is to automate parsing of large amounts of data.
I've been thinking that there should be atleast to ways to do this.
A) I could somehow compile the C generated directly into my own C app, instead of compiling it to it's own standalone program
B) I could pipe data to and from the parser
Have you done anything similar, and which way would you then recommend?
Will either of them not work as I think? Are there other ways to accomplish this?