comparison lwcc/tree.h @ 506:7e8298f7bc0a

Add basic syntax for typecasting Add parser support for type casts. This current scheme handles only integer types. Also include parenthesis grouping in expressions.
author William Astle <lost@l-w.ca>
date Sun, 27 Oct 2019 12:06:01 -0600
parents 14a40f8bb4eb
children
comparison
equal deleted inserted replaced
505:59b8c8b15bd4 506:7e8298f7bc0a
86 #define NODE_OPER_RSHASS 58 // right shift/assign combo 86 #define NODE_OPER_RSHASS 58 // right shift/assign combo
87 #define NODE_OPER_BWANDASS 59 // bitwise and/assign combo 87 #define NODE_OPER_BWANDASS 59 // bitwise and/assign combo
88 #define NODE_OPER_BWXORASS 60 // bitwise xor/assign combo 88 #define NODE_OPER_BWXORASS 60 // bitwise xor/assign combo
89 #define NODE_OPER_BWORASS 61 // bitwise or/assign combo 89 #define NODE_OPER_BWORASS 61 // bitwise or/assign combo
90 #define NODE_OPER_COMMA 62 // comma sequential evaluation operator 90 #define NODE_OPER_COMMA 62 // comma sequential evaluation operator
91 #define NODE_NUMTYPES 63 // the number of node types 91 #define NODE_TYPECAST 63 // type cast to unsigned long long
92 #define NODE_NUMTYPES 64 // the number of node types
92 93
93 typedef struct node_s node_t; 94 typedef struct node_s node_t;
94 95
95 struct node_s 96 struct node_s
96 { 97 {