/* declarations */ %{ #include #include "y.tab.h" %} extern int lineno; %% "0" { return(ZERO); } "1" { return(ONE); } "." { return(RADIXPOINT); } [\001-\127] { fprintf(stderr, "Warning: illegal character (octal %#o) on line %6d is being ignored.\n", yytext[0], lineno);} %%