Re: Using Yacc and Lex to parse a char * in C, and execute a function.

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Hi N07070,

> Le 20 mars 2020 à 16:49, N07070 <[email protected]> a écrit :
> 
> What I would like, is to be able to call the yyparse function, give it a
> string,

yyparse doesn't care about where the text is coming from, that's
the job of the scanner.  That part is something you'll have to
find in your scanner generator.  In the case of flex, have a look
at yy_scan_string and yy_scan_bytes.

Cheers!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.