4 #define VOID(var) ((void *) &var)
11 typedef enum TypeEnum
{
19 typedef enum KindEnum
{
46 //IDENTIFIER defined as token
47 //INT_LITERAL, BOOL_LITERAL, CHAR_LITERAL defined as tokens
56 char *type_get_lexeme(Type type
);
57 Type
type_get_from_lexeme(const char *lexeme
);
59 void value_get(Value
*value
, Type type
, void *val
);
60 void value_set(Value
*value
, Type type
, void *val
);
62 void value_set_from_int(Value
*value
, int val
);
63 void value_set_from_bool(Value
*value
, bool val
);
64 void value_set_from_char(Value
*value
, char val
);
66 void value_print(FILE *file
, Value
*value
, Type type
);