Welcome to SimpleScript

A beginner-friendly and powerful scripting language

Introduction


SimpleScript is a beginner-friendly scripting language designed for ease, power, and readability. Whether you are new to programming or an experienced developer, SimpleScript offers features to streamline your workflow.




Why Choose SimpleScript?


Keywords

These are reserved words used in SimpleScript for program structure and logic.

let: Declare a variable
print: Output a value
if / then / endif: Conditional logic
for / to / do / endfor: Looping from one value to another
while / do / endwhile: Loop while a condition is true
input: Take user input
function / endfunction: Define a function
call: Call a function
return: Return a value from a function
break / continue: Loop control
and / or / not: Logical operators

Data Types


Built-in Functions

len(list): Length of list
push(list, value): Add to end
pop(list): Remove last item
join(list, sep): Join into string
split(str, sep): Convert to list
reverse(list): Reverse items
sort(list): Sort items
map(list): Transform values
filter(list): Filter truthy values
sum(list): Total sum
max(list), min(list): Find max/min

Syntax

Basic SimpleScript syntax:


let x = 10
print x
if x > 5 then
    print "x is greater than 5"
endif
      

Examples


let sum = 0
for i = 1 to 10 do
    sum = sum + i
endfor
print sum
      

Try SimpleScript