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 Term *create_term (char *id, int num);
54 void create_term_prefix (char *id);
56 NonTerm *nonterm (char *id);
58 void start_nonterm (char *id);
60 void create_rule (char *id, Tree *tree, char *code, char *cost,
63 void yyparsetail (void);
65 void reset_parser (void);