Skip to content

how do I read grammar? #2652

Discussion options

You must be logged in to vote

The grammar indeed defines the valid syntax for the attribute. It's written in EBNF, which is a common metasyntax (language) to more formally define the syntax of a language. It's certainly not necessary to understand the EBNF to use Rocket or fully understand how to use the attribute - the examples and rest of the documentation should suffice, and if it doesn't we would consider it a documentation bug. Instead, it's there to precisely define the syntax and serve as a reference and specification. In other words, to rigorously concretize the attribute.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aurkaxi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants