Skip to content
/ Jisp Public

Lisp like toy scripting language using javascript array syntax

Notifications You must be signed in to change notification settings

Alfantin/Jisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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]
        ]
    ]
]

Releases

No releases published

Packages

No packages published