The Lamb programming language - https://github.com/darkf/lamb
Go to file
darkf 732802b414 update README 2013-10-23 04:08:45 -07:00
examples add map example 2013-10-22 17:29:39 -07:00
.gitignore add .gitignore 2013-10-20 17:41:54 -07:00
LICENSE add README and LICENSE, and copyright headers 2013-10-20 17:41:12 -07:00
README.md update README 2013-10-23 04:08:45 -07:00
ast.hs remove curried functions; multiple arguments use tuples 2013-10-22 15:59:05 -07:00
interp.hs treat global scope as a special late binding 2013-10-23 02:13:35 -07:00
lamb.hs transition InterpState to use StateT IO 2013-10-22 17:24:28 -07:00
parser.hs remove curried functions; multiple arguments use tuples 2013-10-22 15:59:05 -07:00

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.