Skip to content

fluffy-mammoths/mammoth-bnf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Backus–Naur form for Mammoth programming language

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))))

About

Backus–Naur form for Mammoth programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors