47d42f0d
Salvador Abreu
start moving towa...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// == Prolog AST-stream term parser for FlatZinc ==============================
//
// (C) 2015 Salvador Abreu
//
// ----------------------------------------------------------------------------
typedef enum { false, true } bool;
typedef union {
long ival;
double rval;
bool bval;
char *sval;
} lit_token;
typedef char *id_token;
typedef long ast_node;
#define UNION_DEFS() \
lit_token lit; \
id_token id; \
ast_node node
|