input to parser from a buffer string.....



hello,
am trying to give input to parser from a buffer string, instead of
STDIN,
but in lex.yy.c file which is generated by flex, the code is written to
take input from stdin, so how to change that source of input from a
file to a buffer......
if anyone of u all have any poiter for solving this then plz tellme....
Thanks in advance....

.



Relevant Pages

  • Re: Flex&Bison: how to write a parser for this grammar?
    ... bison? ... it's better to rely on a parser generator than on hand-written ... a yacc parser will be simpler if the grammar is suitable so ... need for flex start conditions there as I feared there might be. ...
    (comp.programming)
  • Csup cvsmode build discussion
    ... lex and yacc files that I would like to discuss. ... I implemented the RCS parser required to operate on RCS files ... I've been compiling the parser and tokenizer with the help of bison ... Now, the base system already have flex, but the flex version in base is heavily ...
    (freebsd-hackers)
  • Re: Tokenizing data based on an EBNF grammar?
    ... benefit from being run through a Lexer/Parser and outputed XML. ... debug) a different parser for each of my data sources. ... sure if I need a parser generator or a scanner generator ... You could try flex, or writing it manually. ...
    (comp.programming)
  • Re: Tokenizing data based on an EBNF grammar?
    ... debug) a different parser for each of my data sources. ... sure if I need a parser generator or a scanner generator ... You could try flex, or writing it manually. ... I just read the spec. ...
    (comp.programming)
  • Writing a rules parser in ActionScript/JavaScript
    ... rules parser for the Flex 2 environment. ... of advanced validation engine that can process Drools-like notation, ... I have had some successes with the javacc parser before, ...
    (comp.compilers)