A new programming language for kids, inspired by BASIC and Logo. Designed for simplicity, fun, and learning.
- Extremely simple syntax (one command per line)
- English-like keywords
- Immediate visual or text output
- Minimal setup, runs in a REPL or simple interpreter
- Safe: no complex types, no pointers, no advanced concepts
- Integer: Whole numbers (e.g., 10, -5)
- Float: Decimal numbers (e.g., 3.14, -2.5)
- String: Text in double quotes (e.g., "hello")
LET x = 10
LET y = 3.14
LET name = "Cub"
PRINT name
PRINT x + y
- Define with
DEF
and end withEND
- Use
RETURN
to return a value
DEF SQUARE(n)
RETURN n * n
END
PRINT SQUARE(5)
- PRINT(value): Output text or numbers to the console
- LEN(string): Returns the length of a string
- RANDOM(min, max): Returns a random integer between min and max
- TO_INT(value): Converts a value to integer
- TO_FLOAT(value): Converts a value to float
- TO_STRING(value): Converts a value to string
- SQRT(value): Returns the square root of a number
- ABS(value): Returns the absolute value
- ROUND(value): Rounds a float to the nearest integer
Example usage:
LET n = LEN("hello")
PRINT RANDOM(1, 10)
PRINT TO_STRING(123)
PRINT SQRT(16)
- Commands: PRINT, FORWARD, BACK, LEFT, RIGHT, CIRCLE, SET COLOR, REPEAT, END, LET, DEF, RETURN
- Variables: Only integer, float, and string types
- Functions: Simple function definition and call
- Built-in functions: See above
- REPEAT for loops, no conditionals at first
- All numbers are integer or float
- All strings in double quotes
- Immediate drawing (turtle graphics) and text output
LET side = 100
DEF draw_square(size)
REPEAT 4
FORWARD size
RIGHT 90
END
END
PRINT "Let's draw a square!"
draw_square(side)
- Turtle graphics window for drawing commands
- Console for PRINT output
Want to help? Try writing a simple interpreter or suggest new commands!