SandBox is a simple programming language made with JS & ANTLR4.
Our philosophy is: Programming languages must be easy to read
& write
.
- 99 Bottles of Beer
let a = 1;
while a < 100 {
if a == 99 {
print("No more bottles of beer on the wall, no more bottles of beer.");
print("Go to the store and buy some more, 99 bottles of beer on the wall.");
} else if a == 98 {
print("1 bottle of beer on the wall, 1 bottle of beer.");
print("Take it down and pass it around, no more bottles of beer on the wall.");
print("");
} else {
let b = 100 - a;
print(b + " bottles of beer on the wall, " + b + " bottles of beer.");
print("Take one down and pass it around, " + (b - 1) + " bottles of beer on the wall.");
print("");
}
let a = a + 1;
}
- FizzBuzz
let a = 1;
while a <= 100 {
if a % 15 == 0 {
print("FizzBuzz");
} else if a % 5 == 0 {
print("Buzz");
} else if a % 3 == 0 {
print("Fizz");
} else {
print(a);
}
let a = a + 1;
}
-
Clone this repository.
-
Open cmd and move to SandBox folder.
-
Run
npm install
command. -
Run
npm install --save-dev pkg
command. -
Run
pkg .
command.
None.
If you find an issue, please report it here.
SandBox is made by RedTea.