| 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 *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.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 | root | 1.2 | %token STRING NUMBER |
| 19 | root | 1.1 | |
| 20 | %union { | ||
| 21 | char *ident; | ||
| 22 | char *string; | ||
| 23 | root | 1.2 | float num; |
| 24 | root | 1.1 | } |
| 25 | |||
| 26 | %% | ||
| 27 | |||
| 28 | root | 1.2 | proc: |
| 29 | ; |