RE: Hi everyone,
"Jannick" <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 17 Feb 2019 18:43:38 +0100, [email protected] 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. _______________________________________________ [email protected] https://lists.gnu.org/mailman/listinfo/help-bison