Skip to main content

grammar

Attribute Macro grammar 

Source
#[grammar]
Expand description

Grammar module annotation.

This attribute is used to annotate a mod foo {} module with information about the grammar it represents. The macro itself doesn’t generate any code, it will just replace it with an external module declaration mod foo;. It is used as a marker for the Command Line Interface to pick up and generate the external module file.