Skip to content

Commit 880f4a0

Browse files
committed
fix:service
1 parent 4b83841 commit 880f4a0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ libs:
3333
$(COMPILER) ./lib/hamt.trp -l
3434

3535
service:
36+
mkdir -p ./trp-rt/out
3637
$(COMPILER) ./trp-rt/service.trp -l
3738

3839
# TODO: Rename to 'clean/*' ?

compiler/src/IR2Raw.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,14 @@ expr2rawComp = \case
578578
assertTypeAndRaise v1 RawRecord
579579
assertTypeAndRaise v2 RawString
580580
basicBinOpComp
581+
582+
-- Bit operations
583+
Basics.BinAnd -> numBinOpComp
584+
Basics.BinOr -> numBinOpComp
585+
Basics.BinXor -> numBinOpComp
586+
Basics.BinShiftLeft -> numBinOpComp
587+
Basics.BinShiftRight -> numBinOpComp
588+
Basics.BinZeroShiftRight -> numBinOpComp
581589

582590
-- TODO Implement remaining operations
583591
_ -> error $ "Binary operation not yet implemented: " ++ show op

0 commit comments

Comments
 (0)