PlumScript is a small, interpreted programming language made with TypeScript.
fun add(int a, int b) {
return a + b
}
int sum = add(5, 3)
# Prints 8
print(sum)
- Variables, functions, and type checking
- Error handling
- Iterators and conditionals
- Order of operations
Before getting started make sure you have npm installed.
First install the required dependencies by running the command below.
npm install
To run the project first compile the TypeScript files with the TypeScript compiler, then run the JavaScript files with Node.
tsc
npm start
You can also run the following command in a separate terminal to recompile after a file changes.
tsc -w
To test the project run the following command.
npm test
Distributed under the MIT License.