Re: simple problem

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

Could you please use more precise titles to your message?  This is particularly important for the archives.

Also, this list is about Bison, not Flex.

Cheers!

> Le 23 févr. 2019 à 23:19, [email protected] <[email protected]> a écrit :
> 
> Hi again, i have the following code:
> 
> %{
> #include <stdio.h>
> #include <stdlib.h>
> %}
> 
> %%
> 
> ^[ \t]+[a-zA-Z]+\( { printf("%s is a function definition\n", yytext); }
> .|\n            { /* do nothing */ }
> 
> %%
> 
> int main(int argc, char **argv)
> {
> 
>     yylex();
> 
>     return(0);
> }
> 
> but when i try in >  \t234welcome( i also get the output %s is a function string. how to avoid this behaviour ?
> 
> 
> best regards!
> 
> 
> _______________________________________________
> [email protected] https://lists.gnu.org/mailman/listinfo/help-bison


_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
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.