My new text markup langage
1
Name:
Anonymous
2009-10-01 12:11
It's better than BBCode:
`b`i`o`u{I AM AN EXPERT PROGRAMMER}
`sup{NO `sup{MORE `sup{NESTING `sub{PROBLEMS`b`i{!!}}}}}
Also, the parser in Haskell is 30 lines.
41
Name:
Anonymous
2009-10-05 15:18
>>40
I believe you missed either an
h or
to , sir.
42
Name:
Anonymous
2009-10-05 15:24
HASCAL
43
Name:
Anonymous
2009-10-05 15:59
44
Name:
Anonymous
2009-10-05 16:45
>>40
Nah, probably you just suck at it.
45
Name:
Anonymous
2009-10-06 1:43
>>1
You're implementation sucks.
sup("NO" + sup("MORE") + sup("NESTING") + sub("PROBLEMS" + b(i(!!))))
46
Name:
Anonymous
2009-10-06 1:47
>>45
A little too
LISPY . Take your
TOY MARKUP LANGUAGE elsewhere
!
47
Name:
Anonymous
2009-10-06 1:50
>>46
I peed into my trash bin a little.
48
Name:
Anonymous
2009-10-06 2:15
for the aspiring php developer:
function f($i="", $str="") {
switch($i) {
case "sup":
echo "<sup>".$str."</sup>";
break;
case "sub":
echo "<sub>".$str."</sub>";
break;
case "b":
echo "<b>".$str."</b>";
break;
case "i":
echo "<i>".$str."</i>";
break;
case "o":
echo "<o>".$str."</o>";
break;
case "u":
echo "<u>".$str."</u>";
break;
}
}
f("sup", "NO" . f("sup", "MORE") . f("sup", "NESTING") . f("sup", "PROBLEMS") . f("b" f("i", "!!")));
49
Name:
Anonymous
2009-10-06 2:22
>>48
fag
function sub($str="") { echo "<sup>".$str."</sup>"; }
function sup($str="") { echo "<sub>".$str."</sub>"; }
function b($str="") { echo "<b>".$str."</b>"; }
function i($str="") { echo "<i>".$str."</i>"; }
function o($str="") { echo "<o>".$str."</o>"; }
function u($str="") { echo "<u>".$str."</u>"; }
50
Name:
Anonymous
2009-10-06 2:30
>>49
IMPROVED PHPEPPLES EDITION:
class bbcode {
public static function sub($str="") { echo "<sup>".$str."</sup>"; }
public static function sup($str="") { echo "<sub>".$str."</sub>"; }
public static function b($str="") { echo "<b>".$str."</b>"; }
public static function i($str="") { echo "<i>".$str."</i>"; }
public static function o($str="") { echo "<o>".$str."</o>"; }
public static function u($str="") { echo "<u>".$str."</u>"; }
}
bbcode :: sup("NO" . sup("MORE") . sup("NESTING") . sub("PROBLEMS" . b(i("!!"))));
51
Name:
Anonymous
2009-10-06 2:32
52
Name:
Anonymous
2009-10-06 10:26
>>50
ROCKSTAR PHUBY EDITION!
class BbCode
{
private function tag($name, $contents)
{
return sprintf('<%s>%s</%s>', $name, $contents, $name);
}
public function __call($method, $args)
{
$content = isset($args[0]) ? $args[0] : '';
return $this->tag($method, $contents);
}
}
$b = new BbCode();
echo $b->b($b->u($b->o($b->sup('D').'S'.$b->sub('L'))));
53
Name:
Anonymous
2009-10-06 10:48
this reminds me of buttsortz
54
Name:
Anonymous
2009-10-06 11:42
>>45
Have fun
evaling things
55
Name:
Anonymous
2009-10-06 13:52
>>6
i didnt know you need lines in perl ?
why has no one told me ?
56
Name:
Anonymous
2009-10-06 14:19
>>52
so how is rubby formed?
57
Name:
Anonymous
2009-10-06 15:03
>>56
how rubby get classes?
58
Name:
Anonymous
2010-05-25 14:02
class BBCode
def method_missing(name, content="")
tag(name.to_s, content)
end
def tag(name, content)
"[" + name + "]" + content + "[/" + name + "]"
end
end
irb(main):001:0> load "bbcode.rb"
=> true
irb(main):002:0> b = BBCode.new
=> #<BBCode:0x7fcb9c9a6c70>
irb(main):003:0> b.i(b.o(b.u(b.b("BAMPU " + b.sup(b.sup(b.sup(b.sup("PANTSU"))))))))
=> "BAMPU PANTSU "
59
Name:
Anonymous
2010-05-25 14:27
You guys, Xarn has blown the field wide open. All of your dabblings can't hold a candle to his revolutionary SexpCode!
60
Name:
Anonymous
2010-05-25 14:46
>>59
Big deal, I've been using an sexpression based BBCode language for months, hell I even posted chunks of it.
61
Name:
Anonymous
2010-05-25 15:01
I'm pretty sure that all posts mentioning Xarn are made by Xarn himself. Including this one .
62
Name:
Anonymous
2010-05-25 15:16
>>61
Since half of them seem to be making fun of him (including
>>59 ), I don't think that's true.
63
Name:
Anonymous
2010-05-25 20:47
>>62
Is it so unlikely that someone can be so self-deprecating?
I am a massive homosexual, and a failure of a human being
Newer Posts