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

TML: One step closer to S-expression markup

Name: Anonymous 2013-01-04 22:40

https://github.com/judnich/TupleMarkup#readme

What does /anus/ think? Personally, I don't like the |, but some people may think it makes the language more human readable.

Isn't the parser a bit too long? How long is an actual S-expression parser in C?

Found it after clicking /r/programming accidentally in a comment section of some gay website I don't want to share.

Name: Anonymous 2013-01-04 23:07

There's something I've always wondered.

If I want to make something like what >>8-san did, I'd have to do it like this:


[b]
[i]
    [o]
    POST
    [/o]
   
    [o]
    [u]
      < space
    [/u]
    [/o]

    [u]
    MORE
    [/u]
[i]


to achieve the wanted result.

Would it be possible to avoid the repetition? Something like

(b.i
    (o "POST" (u " ") MORE)
)

would explode not-gracefully with most parsers. I can't really think of any other way of avoiding this. Maybe HTML allows that?

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