toys-lang / toys

A toy programming language to learn how to design and implement programming languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toys

Badge

A toy programming language to learn how to design and implement programming languages.

Toys is a simple and expression-oriented dynamically-typed programming language.

Features

  • function definitions
  • global variable definitions
  • mathmatical expressions
    • addition (x + y)
    • subtraction(x - y)
    • multiplication(x * y)
    • division(x / y)
  • 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

Purpose

Toys is designed for a feature article in Web+DB PRESS Vol.125

Test

Toys' interpreter can be tested using Maven below:

$ mvn test

About

A toy programming language to learn how to design and implement programming languages

License:MIT License


Languages

Language:Java 99.8%Language:JavaScript 0.2%