Cupscript
CupScript Is A Simple Scripting Language Completely Created Using Python
Install / Use
/learn @Fus3n/CupscriptREADME
CupScript
CupScript is a simple scripting language made using python
It includes some basic functionality like variables, loops, and some other built in functions but it is not a full language. I made it to learn how programming languages work and how to make a language specifically interpreted languages.
NOTE: This is not meant for general use its just a fun personal project but you're free to try it out or use it if you can
Heres an installation/run guide if you want to try it out.
Installation:
git clone https://github.com/Fus3n/cupscript
cd cupscript
there are no requirements, but you will need python 3.9 or higher to run it.
Run Scripts/cupshell:
python3 cup.py
python3 cup.py <filename>
run file from cupshell: Run("filename")
Syntax
Examples can be found in the the example directory. I will be adding more examples soon.
Features
Display/Input
print("Hello World")
# comments
print(1 + 2)
print(1 - 2)
print(1 * 2)
print(1 / 2)
print(1 % 2)
print(1 ^ 2)
print((1 + 2) * 3 - 4 / 5 % 6 ^ 7)
name = gets("Enter your name: ")
print("Hello " + name)
Definitions
a = [1, 2, 3, [4, 5, 6]]
b = 5
# or
var b = 5
c = "Hello World"
b = b + a>0; # 'a>0' -> accesing the first element in the list
d = a>3>0 # accesing the 3rd element and the first element of that list python equivalent: a[3][0]
func add(a, b)
return a + b
end
func add_two(a, b) -> a + b + 2
add_two(5, 5)
Loops
# for loop
for i = 0 till 100 do
if i % 3 == 0 and i % 5 == 0 then
print("fizzbuzz")
else if i % 3 == 0 then
print("fizz")
else if i % 5 == 0 then
print("buzz")
else
print(i)
end
end
# while loop
i = 0
while i != 5 do
print("Hello! " + tostr(i)) # 'tostr' converts i to string 'toint' does opposite
i = i + 1
end
Check example folder for more information / Full Overview
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
108.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
347.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
