edn-format / edn

Extensible Data Notation
2.62k stars 96 forks source link

should a conformant parser reject symbols containing more than one slash? #22

Closed bpsm closed 12 years ago

bpsm commented 12 years ago

If not, then which slash marks the division between prefix and base name?

richard-lyman commented 12 years ago

From the sentence fragment, "...once only in the middle of a symbol," I would take a/b/c to be invalid edn since one of two things should have happened to allow that to be valid. Either, remove the extra slash and separate the a from b/c with whitespace, or, remove the extra slash and separate the a/b from c with whitespace.

I don't think there is any ambiguity in the current casual spec about how many \/ characters may appear in a valid Symbol.

bpsm commented 12 years ago

Yea, you're right. My parser rejects symbols with more than one slash, but somehow, I forgot about that sentence in the spec.