64
u/anyfoo Jun 11 '11
Nice try, but I don't think that's right. Whitespace itself consists entirely of whitespaces, yes, but grammar representations are usually syntax diagrams, (E)BNF or other such similar things. You wouldn't see the terminal symbols, but everything else like shapes and lines in diagrams or non-terminal symbols in BNF.
Maybe you created a grammar describing metalanguage that itself also consists of nothing but whitespace, but nobody would know it.
Yeah, I'm fun at parties, why do you ask?
15
19
5
Jun 11 '11
Obviously it's a full graph but the lines and shapes and text are all white.
Apparently this is the latest design fad or something.
3
u/TNorthover Jun 11 '11
As it's forged such a striking new path through syntax, we should surely allow it similar leeway in revolutionising metasyntax.
1
u/kristopolous Jun 12 '11
Yes. I clicked immediately thinking "oh goodie ... a nice complex document" and then I saw a white image and was thinking "oh, it's a joke . so . sad . why?"
I moved over to the comments, hoping to be redeemed by someone doing something with
\s \t \n
or whatever the set is, but NO! nothing here. Maybe the source code has yacc or bison in it ... let me look. this is ok
1
4
6
u/neerg Jun 11 '11
Take a funny comment from c/c++ grammar posts, make it into your own link, brilliant.
3
2
2
u/jevon Jun 11 '11
Ah yes, the whitespace hello world:
7
2
2
2
1
u/quzox Jun 11 '11
Can we also have one for Brainfuck and Malbolge please.
7
u/Portponky Jun 11 '11
BF's grammar is just eight commands and the only restriction is the brackets must match up. BF isn't really a complicated langauge at all, just restrictive.
2
u/theeth Jun 11 '11
Befunge would be nice too.
2
u/__s Jun 11 '11
1
u/theeth Jun 11 '11
That other comment was about brainfuck, I think.
Thanks for that second link though, very interesting.
1
1
7
u/[deleted] Jun 11 '11
http://compsoc.dur.ac.uk/whitespace/ if you're curious.