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

Pages: 1-

Minimal SexpCode Compiler

Name: Anonymous 2010-12-24 9:14

ruby -pe "9.times{gsub(/{(.+) ([^{}]+)}/,'[\1]\2[/\1]')}"
{b {u enterprise}}
[b][u]enterprise[/u][/b]

Name: Anonymous 2010-12-24 9:17

But does your do this:
{repeat 5 {map-char spoiler |{repeat 15 •}|
}}


||
||
||
||
||

Name: Anonymous 2010-12-24 9:18

>>2
Nope, it's too minimal. In fact, it doesn't handle composition. Or more than 9 levels of nesting.

Name: Anonymous 2010-12-24 9:21

>>3
Or user-defined tags.
Why don't you put the regexp in a while or something?

Name: Anonymous 2010-12-24 11:04

>>4
Code length.

Name: Anonymous 2010-12-25 2:17

ruby -pe"0 while sub!(/\{(.+?) (.*)\}/,'[\1]\2[/\1]')"

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