1 #ifndef __MONO_MONOBURG_H__
2 #define __MONO_MONOBURG_H__
6 void yyerror (char *fmt, ...);
10 extern FILE *outputfd;
12 typedef struct _Rule Rule;
14 typedef struct _Term Term;
19 GList *rules; /* rules that start with this terminal */
22 typedef struct _NonTerm NonTerm;
27 GList *rules; /* rules with this nonterm on the left side */
32 typedef struct _Tree Tree;
38 NonTerm *nonterm; /* used by chain rules */
50 Tree *create_tree (char *id, Tree *left, Tree *right);
52 void create_term (char *id, int num);
54 NonTerm *nonterm (char *id);
56 void start_nonterm (char *id);
58 void create_rule (char *id, Tree *tree, char *code, char *cost,
61 void yyparsetail (void);