pub enum Rule {
Show 66 variants
EOI,
any,
bottom,
silent,
active,
token,
lexer,
parser,
empty,
definition,
fixpoint,
KEYWORD,
newline,
WHITESPACE,
line_comment,
block_comment,
COMMENT,
inner_chr,
inner_str,
hex_digit,
code,
uppercase,
lowercase,
digit,
unicode,
escape,
character,
string,
range,
token_id,
parser_id,
lexical_primary,
lexical_expr,
lexical_postfix,
lexical_optional,
lexical_star,
lexical_plus,
lexical_not,
lexical_prefix,
lexical_infix,
lexical_sequence,
lexical_alternative,
parser_primary,
parser_expr,
parser_postfix,
parser_optional,
parser_star,
parser_plus,
parser_infix,
parser_sequence,
parser_alternative,
lexer_def,
lexer_rules,
lexical_definition,
token_rule,
active_token,
silent_token,
parser_def,
parser_rules,
parser_definition,
active_parser_definition,
silent_parser_definition,
parser_fixpoint,
active_parser_fixpoint,
silent_parser_fixpoint,
grammar,
}
Variants§
EOI
End-of-input
any
bottom
silent
active
token
lexer
parser
empty
definition
fixpoint
KEYWORD
newline
A newline character.
WHITESPACE
A whitespace character.
line_comment
A single line comment.
block_comment
A multi-line comment.
COMMENT
A grammar comment.
inner_chr
inner_str
hex_digit
code
uppercase
lowercase
digit
unicode
escape
character
string
range
token_id
parser_id
lexical_primary
lexical_expr
lexical_postfix
lexical_optional
lexical_star
lexical_plus
lexical_not
lexical_prefix
lexical_infix
lexical_sequence
lexical_alternative
parser_primary
parser_expr
parser_postfix
parser_optional
parser_star
parser_plus
parser_infix
parser_sequence
parser_alternative
lexer_def
lexer_rules
lexical_definition
token_rule
active_token
silent_token
parser_def
parser_rules
parser_definition
active_parser_definition
silent_parser_definition
parser_fixpoint
active_parser_fixpoint
silent_parser_fixpoint
grammar
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more