pub enum TokenKind {
Show 93 variants
Module,
Use,
Const,
Var,
Type,
Init,
Action,
Invariant,
Property,
Fairness,
Func,
And,
Or,
Not,
Implies,
Iff,
All,
Any,
Choose,
In,
For,
If,
Then,
Else,
Let,
With,
Require,
Changes,
Always,
Eventually,
LeadsTo,
Enabled,
WeakFair,
StrongFair,
True,
False,
Nat,
Int,
Bool,
String_,
Set,
Seq,
Dict,
Option_,
Some_,
None_,
LParen,
RParen,
LBrace,
RBrace,
LBracket,
RBracket,
Comma,
Colon,
Semicolon,
Dot,
DotDot,
Arrow,
FatArrow,
Prime,
Pipe,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Plus,
Minus,
Star,
Slash,
Percent,
Union,
Intersect,
Diff,
SubsetOf,
PlusPlus,
Head,
Tail,
Len,
Keys,
Values,
Powerset,
UnionAll,
Ampersand,
Assign,
Integer(i64),
StringLit(String),
Ident(String),
Comment(String),
DocComment(String),
Eof,
Error(String),
}Expand description
The kind of token.
Variants§
Module
module
Use
use
Const
const
Var
var
Type
type
Init
init
Action
action
Invariant
invariant
Property
property
Fairness
fairness
Func
func - user-defined helper function
And
and
Or
or
Not
not
Implies
implies
Iff
iff
All
all (universal quantifier, Python-like)
Any
any (existential quantifier, Python-like)
Choose
choose (deterministic selection)
In
in
For
for
If
if
Then
then
Else
else
Let
let
With
with
Require
require
Changes
changes
Always
always
Eventually
eventually
LeadsTo
leads_to
Enabled
enabled
WeakFair
weak_fair
StrongFair
strong_fair
True
true
False
false
Nat
Nat
Int
Int
Bool
Bool
String_
String
Set
Set
Seq
Seq
Dict
dict - Python-like dictionary type (lowercase only)
Option_
Option
Some_
Some
None_
None
LParen
(
RParen
)
LBrace
{
RBrace
}
LBracket
[
RBracket
]
Comma
,
Colon
:
Semicolon
;
Dot
.
DotDot
..
Arrow
->
FatArrow
=>
Prime
' (prime for next-state variables)
Pipe
|
Eq
==
Ne
!=
Lt
<
Le
<=
Gt
>
Ge
>=
Plus
+
Minus
-
Star
*
Slash
/
Percent
%
Union
union
Intersect
intersect
Diff
diff
SubsetOf
subset_of
PlusPlus
++
Head
head - get first element of sequence
Tail
tail - get all but first element of sequence
Len
len - get length of sequence/set/function
Keys
keys - get domain of function as set
Values
values - get range of function as set
Powerset
powerset - get set of all subsets
UnionAll
union_all - distributed union (union of all sets in set)
Ampersand
&
Assign
=
Integer(i64)
Integer literal
StringLit(String)
String literal (without quotes)
Ident(String)
Identifier
Comment(String)
Single-line comment // ...
DocComment(String)
Documentation comment /// ...
Eof
End of file
Error(String)
Lexer error