| Revision: | 1.3 |
| Committed: | Sat Nov 6 00:44:50 2004 UTC (21 years, 10 months ago) by root |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 1.2: | +0 -0 lines |
| State: | FILE REMOVED |
| Log Message: | *** empty log message *** |
| # | Content |
|---|---|
| 1 | %{ |
| 2 | #include <stdio.h> |
| 3 | #include <stdlib.h> |
| 4 | |
| 5 | #define YYDEBUG 1 |
| 6 | |
| 7 | extern int yylex(void); |
| 8 | static void yyerror (char const *msg) |
| 9 | { |
| 10 | extern int yylineno; |
| 11 | |
| 12 | printf ("%s (line %d)", msg, yylineno); |
| 13 | abort (); |
| 14 | } |
| 15 | |
| 16 | %} |
| 17 | |
| 18 | %token STRING NUMBER |
| 19 | |
| 20 | %union { |
| 21 | char *ident; |
| 22 | char *string; |
| 23 | float num; |
| 24 | } |
| 25 | |
| 26 | %% |
| 27 | |
| 28 | proc: |
| 29 | ; |