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

#596 in Programming languages

Download history 3/week @ 2024-02-23 2/week @ 2024-03-01 6/week @ 2024-03-15 58/week @ 2024-03-29 9/week @ 2024-04-05

67 downloads per month

MIT/Apache

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

No runtime deps