Skip to content

snail-lang/snail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snail

a function based object oriented language

variables

a: num = 10 # explicit
b := 10     # inferred

example

fib := {
  |0| 0
  |1| 1
  |n| (fib n - 1) + fib n - 2
}

flow-control

when := {
  |true body| body!
  |false _|
}
while := {
  |condition body| when condition! {
    body!
    while condition, body
  }
}

About

a function based object oriented language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages