On Sun, 17 Feb 2019 18:43:38 +0100, workbe...@gmx.at wrote:

> Now a very simple question: i have this lexer.l file:

Suggestions for lines you might want to use instead to get things up and 
running:

> [a-zA-Z]    { strcpy(yytext, yyltext); return STRING; } 

[a-zA-Z]+    { strcpy(yyltext, yytext); return STRING; }

>              printf(" = %s\n", &yyltext);

printf(" = %s\n", yyltext);

I usually compile with gcc -Wall to make the compiler do some of the error 
finding work.

Thanks,
J. 


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

Reply via email to