We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

LAMPA

From Esolang
Jump to navigation Jump to search

LAMPA(A Low Level AutoMation Programming LAnguage), is an esoteric programming language with no strings, only numbers, and basic operands.

Examples

Hello, world!

as main.
-- DECLARATION
module stop where.
hiding -1.
module cr where.
let lf 10.
type as lf.
rec proc.
-- END DECLARATION

-- MAIN MODULE
module main where.
let H 72.
type as H.
let e 101.
type as e.
let l 108.
type as l.type as l.
let o 111.
type as o.
let comma 44.
type as comma.
let space 32.
type as space.
let W 87.
type as W.
type as o.
let r 114.
type as r.
type as l.
let d 100.
type as d.
let ! 33.
type as !.
as cr.
as stop.
-- END MAIN MODULE

Truth-machine

as main.
-- DECLARATION
module 0 where.
type null.
hiding -1.

module 1 where.
type one.
as 1.

-- END DECLARATION

-- MAIN MODULE
module main where.
let input $.
if in input null 0.
if in input one 1.
-- END MAIN MODULE

External resources