Skip to content

Latest commit

 

History

History
58 lines (57 loc) · 775 Bytes

README.md

File metadata and controls

58 lines (57 loc) · 775 Bytes

VARIABLES

["Set", "x", 123]
["Get", "x"]

DEFINE FUNCTION

[
    ["Set", "main",
        ["Function", ["name"],
            ["Print",
                ["+",
                    "Hello ", ["Get", "name"]
                ]
            ]
        ]
    ],
    "World"
]

FOR LOOP

["For", "i", 0, 10, 2,
    ["Get", "i"]
]

WHILE LOOP

["Set", "i", 0],
["While", ["<", ["Get", "i"], 3],
    ["++", "i"]
]

IF THEN ELSE

["If", true, 1, 2]

OPERATORS

["+", 1, 2]
["-", 1, 2]
["/", 1, 2]
["*", 1, 2]
["++", "VariableName"],
["--", "VariableName"]

SAMPLE PROGRAM

["Print",
    ["+",
        ["*", 2, 3],
        ["Sin",
            ["/", 3.14, 2]
        ]
    ]
]