lain is a programming language created in 2017.
#1989on PLDB | 7Years Old |
Lain is both an inline scripting library that allows for complex templating of the wiki pages, and a programming language that exists at the core of the engine to load and parse content for each article.
(add (sub 5 3) 2) ; Basic Math
(λ (a b c) (concat a b c)) ; Lambda
(def obj {:foo "bar"}) ; Creating object
(join obj:foo) ; Reading object parameters
(def _sidebar (dom:create "sidebar")) ; Creating DOM elements
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | ; A comment | |
Line Comments | ✓ | ; A comment | ; |
Semantic Indentation | X |