def addTwo(x: Int): Int =
return x + 2
def subtractOne(x: Int): Int =
return x - 1
def divideByThree(x: Int): Int =
return x / 3
def multiplyByFour(x: Int): Int =
return x * 4
def main(): void =
let x be 7
return multiplyByFour(subtractOne(divideByThree(addTwo(x))))
-
Notifications
You must be signed in to change notification settings - Fork 0
fluffy-mammoths/mammoth-bnf
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Backus–Naur form for Mammoth programming language
Resources
Stars
Watchers
Forks
Releases
No releases published