You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

171 lines
3.9 KiB

#Region "Microsoft.VisualBasic::0e91753e7abc8c1e4ded3338af2790c3, LINQ\TestMain\Parser\Enums.vb"
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
' /********************************************************************************/
' Summaries:
' Enum TokenType
'
' [Operator], CloseBracket, CloseParens, Comma, Dot
' Identifier, NotAToken, OpenBracket, OpenParens, Primitive
' Quote
'
'
'
'
'
' Enum TokenPriority
'
' [And], [Mod], [Not], [Or], Equality
' MulDiv, None, PlusMinus, UnaryMinus
'
'
'
'
'
'
' /********************************************************************************/
#End Region
Namespace Parser
''' <summary>
''' Enumerates the types of tokens that can be classified by the tokenizer.
''' </summary>
Public Enum TokenType
''' <summary>
''' This is reserved for the NullToken.
''' </summary>
NotAToken
''' <summary>
''' An identifier can be either a class or property name. The tokenizer does
''' not have enough information to make that distinction.
''' </summary>
Identifier
''' <summary>
''' An operator like + or *.
''' </summary>
[Operator]
''' <summary>
''' A comma
''' </summary>
Comma
''' <summary>
''' A dot (".").
''' </summary>
Dot
''' <summary>
''' A primitive like a quoted string, boolean value, or number.
''' </summary>
Primitive
''' <summary>
''' Open parenthesis
''' </summary>
OpenParens
''' <summary>
''' Close parenthesis
''' </summary>
CloseParens
''' <summary>
''' Open bracket
''' </summary>
OpenBracket
''' <summary>
''' Close bracket
''' </summary>
CloseBracket
''' <summary>
''' Double quote token, only used internally by tokenizer.
''' </summary>
Quote
End Enum
''' <summary>
''' Indicates priority in order of operations.
''' </summary>
Public Enum TokenPriority
''' <summary>
''' Default
''' </summary>
None
''' <summary>
''' Bitwise or
''' </summary>
[Or]
''' <summary>
''' Bitwise and
''' </summary>
[And]
''' <summary>
''' Bitwise not
''' </summary>
[Not]
''' <summary>
''' Equality comparisons like &gt;, &lt;=, ==, etc.
''' </summary>
Equality
''' <summary>
''' Plus or minus
''' </summary>
PlusMinus
''' <summary>
''' Modulus
''' </summary>
[Mod]
''' <summary>
''' Multiply or divide
''' </summary>
MulDiv
''' <summary>
''' Unary minus
''' </summary>
UnaryMinus
End Enum
End Namespace