Menu

Home

Hiroshi Ukai

We are gradually moving to github: https://github.com/dakusui/logiaslisp .

LogiasLisp is a project to create a lisp processor whose syntax is based on JSON(JavaScript Object Notation).

It is implemented in Java.

You can run LogiasLisp by doing like

$ java -jar logias-1.0-SNAPSHOT-with-dependencies.jar test.js

Code examples are below,

Example 1

:::javascript
[
    "$do",
    [
        ["$i", 0, ["$+", "$i", 1]]
    ],
    [
        ["$>", "$i", 5], "DONE!"
    ],
    ["$print", "hello, world"],
    ["$print", ["$*", "$i", "$i"]],
    ["$print", ["$/", 10, ["$-", "$i", "0.5"]]]
]

Example 2

:::javascript
    ["$let", 
        [["$y", 200]],
        ["$defvar", "$testfunc", ["$lambda",["$x"], ["$print", ["$+", "$x", "$y"]]]],
        ["$testfunc", 100]
    ]

Project Admins:


MongoDB Logo MongoDB