Trompe is a strongly-typed scripting language with type inference. This is developed for handy scripting to clean up chores, which enables quick startup, interpretation (no need build configuration), and detecting type mismatch errors easily and quickly.
Current version is pre-pre-pre-alpha. See examples/ for more detail.
Trompe is licensed under the Apache License, Version 2.0.
- Go 1.10+
- Antlr 4.7.1+
$ make
-- comment end of line
()
true
false
12345
123.45
0e10
"hello, world!"
[]
[1, 2, 3]
(1, 2, 3)
f()
f(1, 2 , 3)
do
...
end
let x = 1
def f(x)
x + 1
end
if n == 0 then
show("zero")
else
show("other")
end
for i in 1..15 do
show(i)
end
case i do
when 0 then "0"
when 1 then "1"
when 2 then "2"
when _ then "_"
end
- Library
- Partial application
- Records
- Variants
- References and dereferences
- Operator definition
- Exception handling
- Modules and traits
- Tail call optimization
SUZUKI Tetsuya ([email protected])