-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialogo.h
67 lines (55 loc) · 2.07 KB
/
dialogo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* A packrat parser generated by PackCC 1.5.0 */
#ifndef PCC_INCLUDED_DIALOGO_H
#define PCC_INCLUDED_DIALOGO_H
void init();
void final();
struct Array {int size; int len; char **strings; int *arg1; int *arg2; int *arg3;};
void array_init(struct Array *array, int size);
void array_free(struct Array *array);
int array_add(struct Array *array, char *str, int arg1, int arg2, int arg3);
char *array_getstring(struct Array *array, int idx);
int array_getarg1(struct Array *array, int idx);
int array_getarg2(struct Array *array, int idx);
int array_getarg3(struct Array *array, int idx);
int array_contains(struct Array *array, char *str);
const int D_NORDEST = 3;
const int D_NORDOVEST = 11;
const int D_NORD = 2;
const int D_GIU = 6;
const int D_FUORI = 7;
const int D_SUDEST = 5;
const int D_SUDOVEST = 9;
const int D_SUD = 8;
const int D_SU = 0;
const int D_DENTRO = 1;
const int D_EST = 4;
const int D_OVEST = 10;
void p_start();
void p_final();
void _pindent(const char *fmt, ...);
void p_cmd_val(char *cmd, char *val, int ret);
void p_cmd(char *cmd, int ret);
void p_prop_val(char *prop, char* obj, char *val, int ret);
void p_prop(char *prop, char *obj, int ret);
void p_is_prop(char *prop, char *obj, int ret);
void p_room(char *name, int genre, int plural, int proper);
void p_supporter(char *name, int genre, int plural, int proper, int mobile);
void p_container(char *name, int genre, int plural, int proper, int mobile);
void p_person(char *name, int genre, int plural, int proper);
void p_object(char *name, int genre, int plural, int proper);
void p_is_rel(char *name, char *loc, char *rel, int ret);
void p_fromto(int dir, char *locfrom, char *locto);
void p_fromtoandback(int dir, char *locfrom, char *locto);
void p_action(char* handler, char *azione, char *obj1, char *obj2, char *prep);
void p_plaintext(char *str);
#ifdef __cplusplus
extern "C" {
#endif
typedef struct pcc_context_tag pcc_context_t;
pcc_context_t *pcc_create(void *auxil);
int pcc_parse(pcc_context_t *ctx, char **ret);
void pcc_destroy(pcc_context_t *ctx);
#ifdef __cplusplus
}
#endif
#endif /* !PCC_INCLUDED_DIALOGO_H */