summaryrefslogtreecommitdiff
path: root/include/chillAST
diff options
context:
space:
mode:
Diffstat (limited to 'include/chillAST')
-rw-r--r--include/chillAST/chillAST_node.hh2
-rw-r--r--include/chillAST/chillASTs.hh2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/chillAST/chillAST_node.hh b/include/chillAST/chillAST_node.hh
index ed155b2..808a62c 100644
--- a/include/chillAST/chillAST_node.hh
+++ b/include/chillAST/chillAST_node.hh
@@ -38,7 +38,7 @@ public:
//! the type of this current node
virtual CHILLAST_NODE_TYPE getType() {return CHILLAST_NODE_UNKNOWN;};
//! the precedence of the current node, 0 being the highest
- virtual int getPrec() {return INT16_MAX;}
+ virtual int getPrec() {return INT8_MAX;}
bool isSourceFile() { return (getType() == CHILLAST_NODE_SOURCEFILE); };
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