pub enum TokenKind {
Show 95 variants
EOF,
Error,
Comma,
Dot,
Semi,
Colon,
LParen,
RParen,
LCurly,
RCurly,
LBracket,
RBracket,
Equal,
Assign,
Plus,
Minus,
Star,
Slash,
Flex,
DotPlus,
DotMinus,
DotStar,
DotSlash,
DotFlex,
Gre,
Geq,
Les,
Leq,
Neq,
Eq,
Not,
And,
Or,
In,
For,
If,
Else,
Elif,
Then,
When,
Elwhen,
While,
Loop,
Break,
Return,
Partial,
Class,
Operator,
Expandable,
Model,
Function,
Record,
Type,
Block,
Connector,
Package,
Pure,
Impure,
Initial,
Equation,
Algorithm,
Extends,
Import,
Public,
Protected,
Within,
Final,
Encapsulated,
Enumeration,
Input,
Output,
Redeclare,
Inner,
Outer,
Replaceable,
Constrainedby,
Flow,
Stream,
Discrete,
Parameter,
Constant,
Each,
Annotation,
External,
End,
Der,
Connect,
LineComment,
BlockComment,
Ident,
String,
Uint,
Ureal,
True,
False,
}Expand description
Represents a type of a Modelica token. Defined based on Modelica Specification 3.6.
Variants§
EOF
Error
Comma
Dot
Semi
Colon
LParen
RParen
LCurly
RCurly
LBracket
RBracket
Equal
Assign
Plus
Minus
Star
Slash
Flex
DotPlus
DotMinus
DotStar
DotSlash
DotFlex
Gre
Geq
Les
Leq
Neq
Eq
Not
And
Or
In
For
If
Else
Elif
Then
When
Elwhen
While
Loop
Break
Return
Partial
Class
Operator
Expandable
Model
Function
Record
Type
Block
Connector
Package
Pure
Impure
Initial
Equation
Algorithm
Extends
Import
Public
Protected
Within
Final
Encapsulated
Enumeration
Input
Output
Redeclare
Inner
Outer
Replaceable
Constrainedby
Flow
Stream
Discrete
Parameter
Constant
Each
Annotation
External
End
Der
Connect
LineComment
BlockComment
Ident
String
Uint
Ureal
True
False
Trait Implementations§
source§impl PartialEq for TokenKind
impl PartialEq for TokenKind
impl Copy for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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