%{ #include #include #define YYDEBUG 1 extern int yylex(void); static void yyerror (char const *msg) { extern int yylineno; printf ("%s (line %d)", msg, yylineno); abort (); } %} %token STRING NUMBER %union { char *ident; char *string; float num; } %% proc: ;