tokin/tökin.h
Juhani Krekelä 5c4b823644 Start work on a lex/yacc parser for tökin
This is to ensure that the grammar remains LALR(1).
2025-03-06 15:58:01 +02:00

14 lines
212 B
C

enum node_type { literal_node, identifier_node, operation_node };
struct node {
enum node_type type;
union {
char *text;
struct {
int operator;
int arity;
struct node *operands[];
} op;
};
};