fix README formatting
This commit is contained in:
parent
77b49494b5
commit
dcb52ad6eb
|
@ -5,9 +5,7 @@ It's not meant for real-world use but for educational purposes on writing an int
|
||||||
**Features**
|
**Features**
|
||||||
|
|
||||||
* No re-assignment (i.e., once you bind a value, you can't re-assign it)
|
* No re-assignment (i.e., once you bind a value, you can't re-assign it)
|
||||||
* Pattern matching
|
* Pattern matching: `f([]) -> "nothing". f([a]) -> one thing".`
|
||||||
f([]) -> "nothing".
|
|
||||||
f([a]) -> one thing".
|
|
||||||
* Imperative I/O
|
* Imperative I/O
|
||||||
* Higher-order functions
|
* Higher-order functions
|
||||||
* Partial evaluation on curried functions
|
* Partial evaluation on curried functions
|
||||||
|
|
4
ast.hs
4
ast.hs
|
@ -1,3 +1,7 @@
|
||||||
|
-- AST definition for the Lamb programming language
|
||||||
|
-- Copyright (c) 2013 darkf
|
||||||
|
-- Licensed under the terms of the zlib license, see LICENSE for details
|
||||||
|
|
||||||
module AST where
|
module AST where
|
||||||
|
|
||||||
data AST = Add AST AST
|
data AST = Add AST AST
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
-- Interpreter for the Lamb programming language
|
||||||
|
-- Copyright (c) 2013 darkf
|
||||||
|
-- Licensed under the terms of the zlib license, see LICENSE for details
|
||||||
|
|
||||||
module Interp where
|
module Interp where
|
||||||
import Prelude hiding (lookup)
|
import Prelude hiding (lookup)
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
|
|
Loading…
Reference in New Issue