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.
darkf 904716b94f Add ord/chr builtins 5 years ago
examples examples: update association_list 8 years ago
mods/std add not to std/op 7 years ago
.gitignore add .gitignore 8 years ago
AST.hs add bitwise operators 5 years ago
Interp.hs Add ord/chr builtins 5 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 add bitwise operators 5 years ago
README.md update README 8 years ago
lamb.cabal lamb.cabal: change executable name, add more build deps 5 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.