Yet Another Scripting Language, aka Yet Another Scripting Language, is a programming language created in 2017.
#1263on PLDB | 7Years Old |
git clone https://github.com/yasl-lang/yasl
Bytecode Interpreter for Yet Another Scripting Language (YASL).
# simple program that iteratively calculates factorials
fn range(a, b) {
tmp := []
for i := a; i < b; i += 1 {
tmp->push(i)
}
return tmp
}
fn fact(n) {
tmp := 1
while n > 0 {
tmp *= n
n -= 1
}
return tmp
}
for i <- range(0, 7) {
echo "fact(#{i}): #{fact(i)}"
}
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | # A comment | |
Line Comments | ✓ | # A comment | # |
Semantic Indentation | X |