1 #ifndef __MONO_MONOBURG_H__
2 #define __MONO_MONOBURG_H__
6 void yyerror (char *fmt, ...);
10 extern FILE *outputfd;
11 extern GHashTable *definedvars;
13 typedef struct _Rule Rule;
15 typedef struct _Term Term;
20 GList *rules; /* rules that start with this terminal */
23 typedef struct _NonTerm NonTerm;
28 GList *rules; /* rules with this nonterm on the left side */
33 typedef struct _Tree Tree;
39 NonTerm *nonterm; /* used by chain rules */
51 Tree *create_tree (char *id, Tree *left, Tree *right);
53 Term *create_term (char *id, int num);
55 void create_term_prefix (char *id);
57 NonTerm *nonterm (char *id);
59 void start_nonterm (char *id);
61 Rule *make_rule (char *id, Tree *tree);
63 void rule_add (Rule *rule, char *code, char *cost, char *cfunc);
65 void create_rule (char *id, Tree *tree, char *code, char *cost,
68 void yyparsetail (void);
70 void reset_parser (void);