mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-05-12 11:07:14 +00:00
add a comment
This commit is contained in:
parent
fadd3f2c66
commit
c9502edefd
@ -13,6 +13,8 @@ pub use grammar::parse_tree::{NonterminalString, Span, TerminalString};
|
|||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Grammar {
|
pub struct Grammar {
|
||||||
|
// a unique prefix that can be appended to identifiers to ensure
|
||||||
|
// that they do not conflict with any action strings
|
||||||
pub prefix: String,
|
pub prefix: String,
|
||||||
pub action_fn_defns: Vec<ActionFnDefn>,
|
pub action_fn_defns: Vec<ActionFnDefn>,
|
||||||
pub productions: Map<NonterminalString, Vec<Production>>,
|
pub productions: Map<NonterminalString, Vec<Production>>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user