Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

bbcode v0.1

Name: Anonymous 2007-09-11 22:38 ID:uR52DJVN

[bbcode]
[title="Hello World"]
[author="Anonymous"]

[main]
  [let="a"]5[/let]
  [while]a>0[do]
  [let="a"]a-1[/let]
  Hello, World!
  [val="a"]
  [/do]
  [/while]
  [call="test"]
[/main]

[test]
hihihi world!
[/test]

[/bbcode]

suggest and improve.

Name: Anonymous 2007-09-13 17:15 ID:2lxbdI5m

>>43
Okay, I changed the syntax around a little bit!  This new syntax uses spaces in places for nicer lists, but it is more BBCodesque because it doesn't use $variables.

[def] map
    [args]function list[/args]
    [foldr]
        [def] lambda
            [args]a b[/args]
            [colon]
                [apply][var]function[/var] [var]a[/var][/apply]
                [var]b[/var]
            [/colon]
        [/def]
        [ls][/ls]
        [var]list[/var]
    [/foldr]
[/def]
[map]
    [def] lambda
        [args]a[/args]
        [add][var]a[/var] 1[/add]
    [/def]
    [ls]1 2[/ls]
[/map]

Output: [ls]2 3[/ls]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List