Skip to content

A minimal interpreted FP language (143 lines) for teaching purposes.

License

Notifications You must be signed in to change notification settings

5eqn/defect-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defect Lang

Example:

let fib = (x) =>
  if x == 1 then 1 else
  if x == 2 then 1 else
    add(app(fib, add(x, -1)), app(fib, add(x, -2))) in

app(fib, 8)

yields 21.

Usage

Main.scala has a main function run that reads file from file system.

Lib.scala has a library function run that interprets a given string.

About

A minimal interpreted FP language (143 lines) for teaching purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages