all repos — mn @ 2e36b444705603bda077fce3b5af84f7153bbb1a

A truly minimal concatenative programming language.

tasks/pre.mn

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
null "cfg_author" let
null "cfg_version" let
null "cfg_name" let
null "cfg_description" let

"mn.yml" read "\n" split
(
    ; Process each line
    ":" split (parts) let
    (parts size 1 >)
    (
        parts 0 get strip (name) let
        parts 1 get strip (value) let
        value "cfg_$#" (name) interpolate bind
    ) when
) foreach