Enum cpc::Token [−][src]
pub enum Token { Operator(Operator), UnaryOperator(UnaryOperator), Number(d128), FunctionIdentifier(FunctionIdentifier), Constant(Constant), Paren, Per, LexerKeyword(LexerKeyword), TextOperator(TextOperator), NamedNumber(NamedNumber), Negative, Unit(Unit), }
Expand description
Variants
Tuple Fields of Operator
0: Operator
Tuple Fields of UnaryOperator
Tuple Fields of Number
0: d128
Tuple Fields of FunctionIdentifier
Tuple Fields of Constant
0: Constant
Used by the parser only
Used by the lexer only
Used by the parser only
Tuple Fields of LexerKeyword
0: LexerKeyword
Tuple Fields of TextOperator
0: TextOperator
Tuple Fields of NamedNumber
0: NamedNumber
The -
symbol, specifically when used as -5
and not 5-5
. Used by the parser only
Tuple Fields of Unit
0: Unit
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more