The Lamb programming language - https://github.com/darkf/lamb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anton Golov c5a29ef171 Added error for each missing file. 8 years ago
examples add ref example 8 years ago
mods/std add interpreter path to module search path 8 years ago
.gitignore add .gitignore 8 years ago
AST.hs remove unit type/value in favor of unit tuples 8 years ago
Interp.hs add mutable refs 8 years ago
LICENSE add README and LICENSE, and copyright headers 8 years ago
Lamb.hs Added error for each missing file. 8 years ago
Parser.hs remove unit type/value in favor of unit tuples 8 years ago
README.md update README 8 years ago

README.md

Lamb is a toy dynamically typed functional programming language

It's not meant for real-world use but for educational purposes on writing an interpreter with pattern matching in Haskell.

Features

  • No re-assignment (i.e., once you bind a value, you can't re-assign it)
  • Pattern matching: f([]) -> "nothing". f([a]) -> one thing".
  • Imperative I/O
  • Higher-order functions
  • Lexical scope

Hello World!

From examples/helloworld.lamb:

hello() -> "hello, " + hello("world").
hello(object) -> object + "!".

putstrln(hello()).

See other examples in the examples directory.

License

Licensed under the terms of the zlib license. See LICENSE for details.