Square is a powerful programming language.
- Simple Syntax
- Highly Portable
- Easy to learn
- Small
Compile:
cd src
gcc -w main.c node.c parse.tab.c squ_run.c value.c squ_math.c -lm
Run with a file:
cd src
$ a.exe ../examples/helloworld.squ
Print "Hello World!" on the screen:
print "Hello World!"
A program to check whether it is an even number:
def a := 10
# You can replace "==" with "is" #
if a % 2 is 0 -> {
print "This is a even number"
}
else -> {
print "This is a odd number"
}
Result:
This is a even number
Welcome to pull a request!
- A tiny VM for square!
Copyright (c) 2020 Stepfen Shawn
Square was designed and developed by Stepfen Shawn in 2020.