A Python-ish programming language with natural English + light Gen Z slang. Indentation-based, fun to write.
# Install deps
npm install
# Run a file
npm run start examples/hello.vibez
# Interactive REPL
npm run startname = "bestie"
age is like 21
if age is greater than 17:
spill "Welcome, " + name
otherwise:
spill "Sorry bestie"
define a function called double that takes n:
give back n * 2
spill double(21) # 42
- Variables:
x is like 42orx = 42 - Print:
spill "hi"/spill the tea on x - Booleans:
fr(true),nah/cap(false) - Conditionals:
if/otherwise if/otherwise - Loops:
while,for each x in list - Functions:
define a function called name that takes a and b: - Lists:
nums = [1, 2, 3],nums[0] - Math:
+,-,*,/ - Logic:
and,or,not - Inc/Dec:
x goes up by 1,x goes down by 1 - Return:
give back xorghost x
| Path | Description |
|---|---|
src/runner.js |
CLI + REPL entry |
src/tokenizer.js |
Lexer |
src/parser.js |
Recursive-descent parser |
src/interpreter.js |
Tree-walking runtime |
examples/ |
Runnable .vibez example files |
PLAN.md |
Full spec, keywords, grammar |
npm test # Jest, 90%+ coverageMIT