Skip to content

nilq/kravl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages