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!


_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to