From 24397e5682514f2988072d7039ed39c08e3ba7ef Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Sun, 8 Dec 2024 21:57:39 +0530 Subject: Add tacky phase for long type generation Tacky phase generation for for long types Refactor expression handling for Tacky phase by using postwalk function Refactor symbol namespaces --- src/cljcc/token.clj | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/cljcc/token.clj') 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}) -- cgit v1.2.3