views:

142

answers:

2

Is there a language specification for clojure? Something that precisely defines the lexical syntax and grammar in EBNF or something similar?

The closest thing that I could find is the clojure website, but that doesn't really quite meet the requirements of a language spec (despite being an absolutely wonderful resource). If there is no spec, has our BDFL made mention of any plans for one?

+1  A: 

There is no language specification. If there are any plans for one in the future, I haven't heard of them.

Rayne
+4  A: 

This is the closest thing to an official Clojure EBNF that you are likely to find.

http://github.com/laurentpetit/ccw/blob/master/clojure-antlr-grammar/src/Clojure.g

fogus
You win this one, sir. Well played... well played.
Rayne