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

My new text markup langage

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.

Name: Anonymous 2009-10-05 15:18

>>40
I believe you missed either an h or to, sir.

Name: Anonymous 2009-10-05 15:24

HASCAL

Name: Anonymous 2009-10-05 15:59

>>41
s/were/where/

Name: Anonymous 2009-10-05 16:45

>>40
Nah, probably you just suck at it.

Name: Anonymous 2009-10-06 1:43

>>1
You're implementation sucks.

sup("NO" + sup("MORE") + sup("NESTING") + sub("PROBLEMS" + b(i(!!))))

Name: Anonymous 2009-10-06 1:47

>>45
A little too LISPY.  Take your TOY MARKUP LANGUAGE elsewhere!

Name: Anonymous 2009-10-06 1:50

>>46
I peed into my trash bin a little.

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", "!!")));

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>"; }

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("!!"))));

Name: Anonymous 2009-10-06 2:32

>>50
doesn't work

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'))));

Name: Anonymous 2009-10-06 10:48

this reminds me of buttsortz

Name: Anonymous 2009-10-06 11:42

>>45
Have fun evaling things

Name: Anonymous 2009-10-06 13:52

>>6
i didnt know you need lines in perl ?
why has no one told me ?

Name: Anonymous 2009-10-06 14:19

>>52
so how is rubby formed?

Name: Anonymous 2009-10-06 15:03

>>56
how rubby get classes?

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"

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!

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.

Name: Anonymous 2010-05-25 15:01

I'm pretty sure that all posts mentioning Xarn are made by Xarn himself. Including this one.

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.

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
Don't change these.
Name: Email:
Entire Thread Thread List