help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Akim Demaille
Subject: Re: Using Yacc and Lex to parse a char * in C, and execute a function.
Date: Fri, 20 Mar 2020 18:08:34 +0100

Hi N07070,

> Le 20 mars 2020 à 16:49, N07070 <address@hidden> 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!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]