Skip to content

Commit

Permalink
Break up _ExternCrate_ grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 27, 2019
1 parent 085f0a8 commit 43ae306
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/items/extern-crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

> **<sup>Syntax:<sup>**\
> _ExternCrate_ :\
> &nbsp;&nbsp; `extern` `crate` ( [IDENTIFIER] | `self` ) (`as` ( [IDENTIFIER] | `_` ) )<sup>?</sup> `;`
> &nbsp;&nbsp; `extern` `crate` _CrateRef_ _AsClause_<sup>?</sup> `;`
>
> _CrateRef_ :\
> &nbsp;&nbsp; [IDENTIFIER] | `self`
>
> _AsClause_ :\
> &nbsp;&nbsp; `as` ( [IDENTIFIER] | `_` )
An _`extern crate` declaration_ specifies a dependency on an external crate.
The external crate is then bound into the declaring scope as the [identifier]
Expand Down

0 comments on commit 43ae306

Please sign in to comment.