sphinx-lang 0.8.6

An intepreter for a dynamic language implemented in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Evaluate the 'else' expression if the condition is false.
if true then print("good") else assert false end  # expect: good
if false then assert false else print("good") end  # expect: good

# Allow block condition.
if (begin print("block") false end) then    # expect: block
    assert false 
end  

if (begin print("block") true end) then   # expect: block
    nil 
else 
    assert false
end