pub enum Tok {
Show 30 variants
Ident(String),
Num(i64),
Decimal(String),
Str(String),
Kw(Kw),
Op(Op),
Fair {
strong: bool,
subscript: String,
},
ModuleEnd,
Separator,
DefEq,
LParen,
RParen,
LBrack,
RBrack,
LBrace,
RBrace,
LTup,
RTup,
Comma,
Colon,
ColonColon,
Dot,
Bang,
At,
Underscore,
Prime,
MapsTo,
Arrow,
Gets,
Eof,
}Variants§
Ident(String)
Num(i64)
Decimal(String)
123.456, kept as written: TLA+ decimals are exact, and no binary
floating-point type could hold one faithfully.
Str(String)
Kw(Kw)
Op(Op)
Fair
WF_vars / SF_vars, which lex as one word but mean an operator
applied to a subscript.
ModuleEnd
Separator
DefEq
LParen
RParen
LBrack
RBrack
LBrace
RBrace
LTup
RTup
Comma
Colon
ColonColon
The :: of a labelled expression.
Dot
Bang
At
The @ of an EXCEPT update, standing for the value being replaced.
Underscore
Prime
MapsTo
Arrow
Gets
Eof
Trait Implementations§
impl Eq for Tok
impl StructuralPartialEq for Tok
Auto Trait Implementations§
impl Freeze for Tok
impl RefUnwindSafe for Tok
impl Send for Tok
impl Sync for Tok
impl Unpin for Tok
impl UnsafeUnpin for Tok
impl UnwindSafe for Tok
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