3 ms·
So, there's three "official" grammars for Rust? The one in the documentation, the reference grammar (that serves as documentation and testing) - and the actual
by e12e 12y ago
So, there's three "official" grammars for Rust? The one in the documentation, the reference grammar (that serves as documentation and testing) - and the actual grammar, used in the reference implementation? No wonder there are inconsistencies...
Sounds like paring it down to two: a reference/testing grammar that is well documented; perhaps written/maintained with a literate programming tool and the actual implementation is a good idea. Kill off the "only documentation" grammar and/or merge it with the larl-one.
- acqq 12y agoI was also wondering why not autogenerating a "documentation" grammar out of the working code.
- steveklabnik 12y agoThere were only three temporarily: today, the reference grammar is all gone, subsumed into the documentation/testing grammar.