Struct piston_meta::SeparatedBy
[−]
[src]
pub struct SeparatedBy { pub rule: Rule, pub by: Rule, pub optional: bool, pub allow_trail: bool, pub debug_id: DebugId, }
Stores inforamtion about separated by.
Fields
rule: Rule
The rule to separate.
by: Rule
The rule to separate by.
optional: bool
Whether the rule must occur at least once.
allow_trail: bool
Whether the rule can end with separator.
debug_id: DebugId
A debug id to track down the rule generating an error.
Methods
impl SeparatedBy
[src]
fn parse(&self, tokenizer: &mut Tokenizer, state: &TokenizerState, chars: &[char], start_offset: usize) -> ParseResult<TokenizerState>
Parses rule repeatedly separated by another rule.