Separate out node type as an enumeration.
This commit is contained in:
12
parser.h
12
parser.h
@@ -3,11 +3,8 @@
|
|||||||
|
|
||||||
#include "./lib.h"
|
#include "./lib.h"
|
||||||
|
|
||||||
typedef struct
|
typedef enum
|
||||||
{
|
{
|
||||||
size_t col, row;
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
NEXT = 0,
|
NEXT = 0,
|
||||||
PREV,
|
PREV,
|
||||||
INC,
|
INC,
|
||||||
@@ -16,7 +13,12 @@ typedef struct
|
|||||||
READ,
|
READ,
|
||||||
LIN,
|
LIN,
|
||||||
LOUT
|
LOUT
|
||||||
} type;
|
} node_type_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
size_t col, row;
|
||||||
|
node_type_t type;
|
||||||
int loop_ref;
|
int loop_ref;
|
||||||
} node_t;
|
} node_t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user