Questions Columns Rows
GitHub icon

lain

lain - Programming language

< >

lain is a programming language created in 2017.

#2356on PLDB 6Years 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.


Example from the web:
(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

Language features

Feature Supported Token Example
Comments
; A comment
Line Comments ;
; A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Stats · Sponsor · Traffic · Traffic Today · Day 279 · feedback@pldb.com · Logout