diff options
Diffstat (limited to 'src/cljcc/token.clj')
| -rw-r--r-- | src/cljcc/token.clj | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cljcc/token.clj b/src/cljcc/token.clj index 86231b8..3eaa505 100644 --- a/src/cljcc/token.clj +++ b/src/cljcc/token.clj @@ -213,3 +213,24 @@ :line line :col col :literal literal})) + +(def tacky-unary-ops + #{:bit-not :negate :logical-not}) + +(def tacky-binary-ops + #{:add + :sub + :mul + :div + :mod + :equal + :not-equal + :less-than + :greater-than + :less-or-equal + :greater-or-equal + :bit-and + :bit-or + :bit-xor + :bit-right-shift + :bit-left-shift}) |
