aboutsummaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/parser.h b/parser.h
index 1b3718e..e78f116 100644
--- a/parser.h
+++ b/parser.h
@@ -3,20 +3,22 @@
#include "./lib.h"
+typedef enum
+{
+ NEXT = 0,
+ PREV,
+ INC,
+ DEC,
+ OUT,
+ READ,
+ LIN,
+ LOUT
+} node_type_t;
+
typedef struct
{
size_t col, row;
- enum
- {
- NEXT = 0,
- PREV,
- INC,
- DEC,
- OUT,
- READ,
- LIN,
- LOUT
- } type;
+ node_type_t type;
int loop_ref;
} node_t;