Enum erg_parser::token::TokenCategory
source · pub enum TokenCategory {
Show 18 variants
Symbol,
Literal,
BinOp,
UnaryOp,
PostfixOp,
LEnclosure,
REnclosure,
SpecialBinOp,
DefOp,
LambdaOp,
Separator,
Reserved,
AtSign,
VBar,
UBar,
BOF,
EOF,
Illegal,
}
Variants§
Symbol
Literal
BinOp
UnaryOp
PostfixOp
? <.. ..
LEnclosure
( [ { Indent
REnclosure
) } } Dedent
SpecialBinOp
, : :: :> <: . |> :=
DefOp
=
LambdaOp
-> =>
Separator
\n ;
Reserved
^ &
AtSign
@
VBar
|
UBar
_
BOF
EOF
Illegal
Implementations§
source§impl TokenCategory
impl TokenCategory
pub const fn is_block_op(&self) -> bool
Trait Implementations§
source§impl Clone for TokenCategory
impl Clone for TokenCategory
source§fn clone(&self) -> TokenCategory
fn clone(&self) -> TokenCategory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more