Revert "Remove binary.aqua (#71)" (#73)

This reverts commit a062fcd444.
This commit is contained in:
InversionSpaces 2023-12-21 15:03:43 +01:00 committed by GitHub
parent 3b31da9a41
commit e3c06bf8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
binary.aqua Normal file
View File

@ -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!