> Is this the complete grammar of Nim?

Yes. The grammar is extracted from comments in `parser.nim` so it occasionally 
it can be out-of-sync, but it should be complete.

> Has this grammar definition got a name?

Not officially. I call it `ABNF` for "actions within EBNF". (And also for 
"Araq's version of BNF" ;-) )

> Can anyone describe me its properties (e.g. context-free grammar, typology, 
> etc.)?

It tries to be as close to LL(1) as possible with some PEG-like extensions. It 
offers the "ordered choice" `/` as well as the unordered choice `|`.

> Was it created specifically for Nim, or is it used in other contexts too?

Specifically for Nim but it's generally useful. 

Reply via email to