Skip to content

Commit

Permalink
Revert "Remove binary.aqua (#71)" (#73)
Browse files Browse the repository at this point in the history
This reverts commit a062fcd.
  • Loading branch information
InversionSpaces committed Dec 21, 2023
1 parent 3b31da9 commit e3c06bf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions binary.aqua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-- TODO: add aqua tests

func and(l: bool, r: bool) -> bool:
res: ?bool
if l:
res <<- r
else:
res <<- false
<- res!

func or(l: bool, r: bool) -> bool:
res: ?bool
if l:
res <<- true
else:
res <<- r
<- res!

func not(u: bool) -> bool:
res: ?bool
if u:
res <<- false
else:
res <<- true
<- res!

0 comments on commit e3c06bf

Please sign in to comment.