mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
add some comments
This commit is contained in:
parent
f346ce8a06
commit
39a90bdd73
@ -29,8 +29,14 @@ pub struct Grammar {
|
||||
|
||||
// the "use foo;" statements that the user declared
|
||||
pub uses: Vec<String>,
|
||||
|
||||
// type parameters declared on the grammar, like `grammar<T>;`
|
||||
pub type_parameters: Vec<TypeParameter>,
|
||||
|
||||
// actual parameters declared on the grammar, like the `x: u32` in `grammar(x: u32);`
|
||||
pub parameters: Vec<Parameter>,
|
||||
|
||||
// where clauses declared on the grammar, like `grammar<T> where T: Sized`
|
||||
pub where_clauses: Vec<String>,
|
||||
|
||||
// the grammar proper:
|
||||
|
Loading…
x
Reference in New Issue
Block a user