Skip to content

ohua-dev/alang-sexpr-parser

Repository files navigation

Parses simple S-Expressions into ALang

Build Status

An example for a standalone ohua module using the lisp-like syntax

(ns some_ns)


(require sf [ohua.math [add isZero]])
(require algo [some.sn [myalgo]])

(defalgo sqare [x]
    (add x x))

(defalgo algo1 [someParam]
    (let [a (square (myalgo someParam)
          coll0 (ohua.lang/smap (fn [i] (square i)) coll)]
    (if (isZero a)
        coll0
        a)))

(defalgo main [param]
    (algo0 param))

About

Parse simple S-Expressions directly into ALang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published