Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Sampi

< >

Sampi is an open source programming language created in 2026 by legospider15.

#1585on PLDB 0Years Old
Download source code:
git clone https://github.com/legospider15/Sampi
Homepage · Source Code · Docs

Sampi is a dynamically typed language with a small set of keywords, designed to be easy to learn.


Example from the web:
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))

Language features

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

- Build the next great programming language · Add · Add Prompt · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Theme: System

Built with Scroll v180.0.1

repos 1

hasMultilineComments yes

hasZeroBasedIndexing false