nessa-language 0.9.1

An extensible programming language with a strong type system
Documentation
1
2
3
4
5
6
7
8
9
10
11
syntax ternary_operator from "{" [s] Arg(<expr>, condition) [s] "?" [s] Arg(<expr>, if_true) [s] ":" [s] Arg(<expr>, if_false) [s] "}" {
    if $condition {
        return $if_true;
    \}
    
    return $if_false;
}

if { 4 > 6 ? 1 + 2 : 1 + 4 } != 5 {
    panic("This should not happen");
}