From f939f4bacb23cfe0c4fb96c5d71f30412fa828d7 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sat, 24 Sep 2016 00:04:39 -0600 Subject: binary op precedence --- include/chillAST/chillASTs.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/chillAST/chillASTs.hh') diff --git a/include/chillAST/chillASTs.hh b/include/chillAST/chillASTs.hh index fb27373..2c7006d 100644 --- a/include/chillAST/chillASTs.hh +++ b/include/chillAST/chillASTs.hh @@ -874,6 +874,7 @@ public: class chillAST_TernaryOperator : public chillAST_Node { public: + virtual int getPrec() {return INT8_MAX+15;} virtual CHILLAST_NODE_TYPE getType(){return CHILLAST_NODE_TERNARYOPERATOR;} // variables that are special for this type of node char *op; // TODO need enum so far, only "?" conditional operator @@ -955,6 +956,7 @@ public: class chillAST_BinaryOperator : public chillAST_Node { public: + virtual int getPrec(); virtual CHILLAST_NODE_TYPE getType(){return CHILLAST_NODE_BINARYOPERATOR;} // variables that are special for this type of node char *op; // TODO need enum -- cgit v1.2.3-70-g09d2