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

SexpCode+ revision

Name:   2010-06-27 17:48

Each character should refer to a single-character atom rather than having these dot things to differentiate between each single-character atom.

NO EXCEPTIONS
[b][i][o][u]NO EXCEPTIONS[/u][/o][/i][/b]
{b.i.o.u NO EXCEPTIONS}
becomes
{biou NO EXCEPTIONS}

But, in the case of a multi-char atom like tt, spoiler, sub, sup, quote, or img, we should make use of the dot things.

A dot should be used to denote the start of a multi-character atom and optionally the end of the atom, e.g.

fioc user
[sub]fioc user[/sub]
{sub fioc user}
becomes
{.sub fioc user}

and

/b/
[i][sup][b]/b/[/b][/sup][/i]
{i.sup.b /b/}
becomes
{i.sup.b /b/}

Name: Anonymous 2010-06-28 5:07

>>40
Reading is hard.

Name: Anonymous 2010-06-28 5:07

>>40
you post the code somewhere else and then link to it. a bbs is not pastebin or github.

Name: Anonymous 2010-06-28 5:25

>>40
As long as you don't start a block FV-style with some SexpCode function masquerading as a type, you'll be fine.

Name: Anonymous 2010-06-28 9:31

This thread is a disease.

Name: Anonymous 2010-06-28 13:46

>>43
Unless you're using a particularly strict implementation of SexpCode, of course. The ``correct'' way of posting C code is to use one of the verbatim syntaxes, possibly in composition with a code function.

{verbatim.code C int main(void) {[br]    printf("Hallo wereld.\n");[br]    return 0;[br]}}
http://cairnarvon.rotahall.org/misc/sexpcode.html#ch3

Name: Anonymous 2010-06-28 13:50

Shouldn't a post be in verbatim mode by default? There's always less formatting than plain text, so why not say ``I wish for this portion of text to be parsed for formatting please'' instead of ``I wish for this portion of text not to be parsed for formatting''?

Name: Anonymous 2010-06-28 14:14

So how would you include tags which specify that in text which is supposed to not be parsed at all, genius?

Name: Anonymous 2010-06-28 14:15

>>46
The curly braces specify what parts of your post you want to be parsed for formatting. The verbatim modes specify when you don't want the thing that would normally specify that you want something to be parsed for formatting to specify that you want something to be parsed for formatting.

Name: Anonymous 2010-06-28 14:27

>>47
Ask it nicely, duh.

Name: Anonymous 2010-06-28 14:56

>>45
when does verbatim parse [br]?

Name: Anonymous 2010-06-28 15:04

>>50
Just another demonstration of the failures of bbcode.

Name: Anonymous 2010-06-28 15:39

Witches do not exist.

Name: Anonymous 2010-06-28 15:56

{define bi #}{define o i}{define bio m}{define u rem}{define biou aa}{.biou what happens now, asshole?}

I know what you're going to say should happen, but you can spare it, because whereas the code was explicit before, you've decided to add a mind-reading element for no reason. You are a stupid, arrogant faggot and IHBT.

Name: Witches don't exist. 2010-06-28 16:02

>>52
I dunno what this pertains to.

Name: Anonymous 2010-06-28 17:27

>>52,54
You are witches, Battora.

Gets back to /jp/

Name: Anonymous 2010-06-28 17:36

>>55
# /jp/ cannot say in red # ☹

Name: Anonymous 2010-06-28 18:03

>>53
I think you mean {.define }, because define is a multi-character atom.

You can only define a single function at a time.

{.define bi #}
.bi is #

{.define o i}
o is i

{.define bio m}
.bio is m

{.define u rem}
u is r.e.m

{.define biou aa}
.biou is a.a

{.biou what happens now, asshole?}
{a.a what happens now, asshole?}


You also probably meant {.define u .rem} and {.define biou .aa} also. Toodles!

Name: Anonymous 2010-06-28 20:44

>>57
Aha, you're right. What a joy all that extra syntax is.

Assume I instead wrote .define, .aa, .rem, etc. I could end up with:

{#i.rem what happens now, asshole?}
{m.rem what happens now, asshole?}
or [code]{.aa what happens now, asshole?}


All three would be perfectly valid; resultant behavior would depend solely on whether or not a given parser implementation is lazy or greedy in its function evaluation.

Name: Anonymous 2010-06-29 1:56

SEXPCODEPPLES QUALITY.

Name: Anonymous 2010-06-29 13:28

Enjoy your AIDS AND FAIL, /prog/

Name: Anonymous 2010-11-28 12:50

Name: Anonymous 2010-12-22 20:06

Name: Anonymous 2013-01-18 23:00

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

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