diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2017-04-14 16:34:59 -0500 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2017-04-14 16:34:59 -0500 |
commit | 9d7766ed1e41da53d59ad16e9ef8be8f522226df (patch) | |
tree | a0b20c6b013c2a7731c080abee6793cd91b30b1d /src/expr/node.h | |
parent | 8748256b518f5ad4b1cefe46d9445b562199871c (diff) |
Fix nullary operator printers, minor.
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 6d98b940b..bd1b5e63c 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -457,14 +457,21 @@ public: bool isConst() const; /** - * Returns true if this node represents a constant - * @return true if const + * Returns true if this node represents a variable */ inline bool isVar() const { assertTNodeNotExpired(); return getMetaKind() == kind::metakind::VARIABLE; } - + + /** + * Returns true if this node represents a nullary operator + */ + inline bool isNullaryOp() const { + assertTNodeNotExpired(); + return getMetaKind() == kind::metakind::NULLARY_OPERATOR; + } + inline bool isClosure() const { assertTNodeNotExpired(); return getKind() == kind::LAMBDA || |