23 releases
Uses old Rust 2015
0.3.3 | Mar 19, 2017 |
---|---|
0.3.2 | Mar 19, 2017 |
0.2.9 | Mar 17, 2017 |
0.1.9 | Mar 17, 2017 |
25KB
723 lines
kravl
An compiled programming language in Rust.
Syntax
Functions
define add(a b) -> int do
a + b
end
define not_zero?(a) -> bool do
add(a, 100) > 100
end
Functional
define higher_order(f x) -> func do
lambda a: f(x + a)
end
foo = lambda x: println("yo, ", x)
higher_order(foo)(100)
TODO
Lexer
- escaped characters in strings
Parser
- lambda definitions
- argument types
define foo(a -> int, b -> text) ...
Compiler
- all of the compiler