Sampi is an open source programming language created in 2026 by legospider15.
| #1585on PLDB | 0Years Old |
git clone https://github.com/legospider15/SampiSampi is a dynamically typed language with a small set of keywords, designed to be easy to learn.
set x to 2
glue pi to 3.14
if x = 0:
say("x is 0")
else if x > 0:
say("x is positive!")
else:
say("x is negative!")
end
repeat 5:
say("hello")
end
repeat 5 as i:
say(i)
end
func add a b:
return a + b
end
say(add(2, 3))| Feature | Supported | Example | Token |
|---|---|---|---|
| Conditionals | ✓ | ||
| Classes | ✓ | ||
| Functions | ✓ | ||
| Booleans | ✓ | true false | |
| Floats | ✓ | ||
| Integers | ✓ | ||
| Strings | ✓ | ||
| Line Comments | ✓ | // comment | |
| Ternary operators | X | ||
| Bitwise Operators | X | ||
| Static Typing | X | ||
| Exceptions | X | ||
| While Loops | X | by using until not |
repos 1
hasMultilineComments yes
hasZeroBasedIndexing false