Class TokenTypes
- Namespace
- StepLang.Tokenizing
- Assembly
- StepLang.dll
public static class TokenTypes
- Inheritance
-
TokenTypes
- Inherited Members
-
Fields
MathematicalOperations
public static readonly TokenType[] MathematicalOperations
Field Value
- TokenType[]
Operators
public static readonly TokenType[] Operators
Field Value
- TokenType[]
ShorthandMathematicalOperations
public static readonly TokenType[] ShorthandMathematicalOperations
Field Value
- TokenType[]
ShorthandMathematicalOperationsWithAssignment
public static readonly TokenType[] ShorthandMathematicalOperationsWithAssignment
Field Value
- TokenType[]
Methods
HasMeaning(TokenType)
public static bool HasMeaning(this TokenType type)
Parameters
type
TokenType
Returns
- bool
IsKnownTypeName(string)
public static bool IsKnownTypeName(this string name)
Parameters
name
string
Returns
- bool
IsLiteral(TokenType)
public static bool IsLiteral(this TokenType type)
Parameters
type
TokenType
Returns
- bool
IsMathematicalOperation(TokenType)
public static bool IsMathematicalOperation(this TokenType type)
Parameters
type
TokenType
Returns
- bool
IsOperator(TokenType)
public static bool IsOperator(this TokenType type)
Parameters
type
TokenType
Returns
- bool
IsShorthandMathematicalOperation(TokenType)
public static bool IsShorthandMathematicalOperation(this TokenType type)
Parameters
type
TokenType
Returns
- bool
IsShorthandMathematicalOperationWithAssignment(TokenType)
public static bool IsShorthandMathematicalOperationWithAssignment(this TokenType type)
Parameters
type
TokenType
Returns
- bool
ToCode(TokenType?)
public static string ToCode(this TokenType? type)
Parameters
type
TokenType?
Returns
- string
ToDisplay(TokenType)
public static string ToDisplay(this TokenType type)
Parameters
type
TokenType
Returns
- string
TryParseKeyword(string, out TokenType?)
public static bool TryParseKeyword(this string name, out TokenType? type)
Parameters
name
string
type
TokenType?
Returns
- bool
TryParseSymbol(char, out TokenType?)
public static bool TryParseSymbol(this char symbol, out TokenType? type)
Parameters
symbol
char
type
TokenType?
Returns
- bool