A toy programming language to learn how to design and implement programming languages.
Toys is a simple and expression-oriented dynamically-typed programming language.
- function definitions
- global variable definitions
- mathmatical expressions
- addition (
x + y
) - subtraction(
x - y
) - multiplication(
x * y
) - division(
x / y
)
- addition (
- comparative expressions
x < y
x > y
x <= y
x >= y
x == y
x != y
- integer datatypes
- if expressions
- while expressions
- for-in expressions
- labelled arguments
Toys is designed for a feature article in Web+DB PRESS Vol.125
Toys' interpreter can be tested using Maven below:
$ mvn test