diff 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
line wrap: on
line diff
--- a/lwcc/tree.h	Sat Oct 26 22:01:55 2019 -0600
+++ b/lwcc/tree.h	Sun Oct 27 12:06:01 2019 -0600
@@ -88,7 +88,8 @@
 #define NODE_OPER_BWXORASS  60  // bitwise xor/assign combo
 #define NODE_OPER_BWORASS   61  // bitwise or/assign combo
 #define NODE_OPER_COMMA     62  // comma sequential evaluation operator
-#define NODE_NUMTYPES		63	// the number of node types
+#define NODE_TYPECAST       63  // type cast to unsigned long long
+#define NODE_NUMTYPES		64	// the number of node types
 
 typedef struct node_s node_t;