Enum cyclang_parser::Rule
source · pub enum Rule {
Show 53 variants
EOI,
expression_list,
stmt_inner,
expression_list_inner,
expression,
initialization,
iteration,
condition,
for_stmt,
if_stmt,
while_stmt,
block_stmt,
let_stmt,
index_stmt,
assignment_stmt,
func_stmt,
func_arg,
type_name,
call_stmt,
print_stmt,
len_stmt,
string_type,
i32_type,
i64_type,
bool_type,
base_type,
list_type,
binary,
operand,
operator_sequence,
operator,
grouping,
literal,
list,
list_index,
name,
number,
digits,
alpha,
string,
nil,
bool,
equal,
semicolon,
colon,
arrow,
lbracket,
rbracket,
return_keyword,
return_stmt,
comma,
comment,
WHITESPACE,
}Variants§
EOI
End-of-input
expression_list
stmt_inner
expression_list_inner
expression
initialization
iteration
condition
for_stmt
if_stmt
while_stmt
block_stmt
let_stmt
index_stmt
assignment_stmt
func_stmt
func_arg
type_name
call_stmt
print_stmt
len_stmt
string_type
i32_type
i64_type
bool_type
base_type
list_type
binary
operand
operator_sequence
operator
grouping
literal
list
list_index
name
number
digits
alpha
string
nil
bool
equal
semicolon
colon
arrow
lbracket
rbracket
return_keyword
return_stmt
comma
comment
WHITESPACE
Implementations§
Trait Implementations§
source§impl Ord for Rule
impl Ord for Rule
source§impl PartialEq for Rule
impl PartialEq for Rule
source§impl PartialOrd for Rule
impl PartialOrd for Rule
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)