In This Article

PythonTokenId Class

Contains the token IDs for the Python language.

public class PythonTokenId : TokenIdProviderBase, ITokenIdProvider, IIdProvider
Inheritance:
object TokenIdProviderBase object
Implements:
ITokenIdProvider IIdProvider

Remarks

This type was generated by the Actipro Language Designer tool v21.1.2.0 (http://www.actiprosoftware.com).

Constructors

PythonTokenId()

Initializes an instance of the class.

public PythonTokenId()

Properties

MaxId

Gets the maximum token ID returned by this provider.

public override int MaxId { get; }

Property Value

int:

The maximum token ID returned by this provider.

MinId

Gets the minimum token ID returned by this provider.

public override int MinId { get; }

Property Value

int:

The minimum token ID returned by this provider.

Methods

ContainsId(int)

Returns whether the specified ID value is valid for this token ID provider.

public override bool ContainsId(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is valid; otherwise, false

GetDescription(int)

Returns the actual string representation for the specified token ID.

public override string GetDescription(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

string:

The actual string representation for the specified token ID.

GetKey(int)

Returns the string-based key for the specified token ID.

public override string GetKey(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

string:

The string-based key for the specified token ID.

IsCommentClassificationType(int)

Returns whether the specified ID value is part of the Comment.

public static bool IsCommentClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsIdentifierClassificationType(int)

Returns whether the specified ID value is part of the Identifier.

public static bool IsIdentifierClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsKeywordClassificationType(int)

Returns whether the specified ID value is part of the Keyword.

public static bool IsKeywordClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsNumberClassificationType(int)

Returns whether the specified ID value is part of the Number.

public static bool IsNumberClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsOperatorClassificationType(int)

Returns whether the specified ID value is part of the Operator.

public static bool IsOperatorClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsPunctuationClassificationType(int)

Returns whether the specified ID value is part of the Punctuation.

public static bool IsPunctuationClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsPythonSystemIdentifierClassificationType(int)

Returns whether the specified ID value is part of the PythonSystemIdentifier.

public static bool IsPythonSystemIdentifierClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

IsStringClassificationType(int)

Returns whether the specified ID value is part of the String.

public static bool IsStringClassificationType(int id)
Parameter Type Description
id int

The token ID to examine.

Returns

bool:

true if the ID value is in the classification type; otherwise, false

Fields

CloseCurlyBrace

Gets the CloseCurlyBrace token ID.

public const int CloseCurlyBrace = 14008

CloseParenthesis

Gets the CloseParenthesis token ID.

public const int CloseParenthesis = 14004

CloseSquareBrace

Gets the CloseSquareBrace token ID.

public const int CloseSquareBrace = 14006

Colon

Gets the Colon token ID.

public const int Colon = 14010

Comma

Gets the Comma token ID.

public const int Comma = 14009

CommentSingleLine

Gets the CommentSingleLine token ID.

public const int CommentSingleLine = 14015

Dedent

Gets the Dedent token ID.

public const int Dedent = 14100

Dot

Gets the Dot token ID.

public const int Dot = 14011

Identifier

Gets the Identifier token ID.

public const int Identifier = 14062

Indent

Gets the Indent token ID.

public const int Indent = 14099

KeywordAnd

Gets the KeywordAnd token ID.

public const int KeywordAnd = 14064

KeywordAs

Gets the KeywordAs token ID.

public const int KeywordAs = 14065

KeywordAssert

Gets the KeywordAssert token ID.

public const int KeywordAssert = 14066

KeywordAsync

Gets the KeywordAsync token ID.

public const int KeywordAsync = 14067

KeywordAwait

Gets the KeywordAwait token ID.

public const int KeywordAwait = 14068

KeywordBreak

Gets the KeywordBreak token ID.

public const int KeywordBreak = 14069

KeywordClass

Gets the KeywordClass token ID.

public const int KeywordClass = 14070

KeywordContinue

Gets the KeywordContinue token ID.

public const int KeywordContinue = 14071

KeywordDef

Gets the KeywordDef token ID.

public const int KeywordDef = 14072

KeywordDel

Gets the KeywordDel token ID.

public const int KeywordDel = 14073

KeywordElIf

Gets the KeywordElIf token ID.

public const int KeywordElIf = 14074

KeywordElse

Gets the KeywordElse token ID.

public const int KeywordElse = 14075

KeywordExcept

Gets the KeywordExcept token ID.

public const int KeywordExcept = 14076

KeywordFalse

Gets the KeywordFalse token ID.

public const int KeywordFalse = 14077

KeywordFinally

Gets the KeywordFinally token ID.

public const int KeywordFinally = 14078

KeywordFor

Gets the KeywordFor token ID.

public const int KeywordFor = 14079

KeywordFrom

Gets the KeywordFrom token ID.

public const int KeywordFrom = 14080

KeywordGlobal

Gets the KeywordGlobal token ID.

public const int KeywordGlobal = 14081

KeywordIf

Gets the KeywordIf token ID.

public const int KeywordIf = 14082

KeywordImport

Gets the KeywordImport token ID.

public const int KeywordImport = 14083

KeywordIn

Gets the KeywordIn token ID.

public const int KeywordIn = 14084

KeywordIs

Gets the KeywordIs token ID.

public const int KeywordIs = 14085

KeywordLambda

Gets the KeywordLambda token ID.

public const int KeywordLambda = 14086

KeywordNonLocal

Gets the KeywordNonLocal token ID.

public const int KeywordNonLocal = 14087

KeywordNone

Gets the KeywordNone token ID.

public const int KeywordNone = 14088

KeywordNot

Gets the KeywordNot token ID.

public const int KeywordNot = 14089

KeywordOr

Gets the KeywordOr token ID.

public const int KeywordOr = 14090

KeywordPass

Gets the KeywordPass token ID.

public const int KeywordPass = 14091

KeywordRaise

Gets the KeywordRaise token ID.

public const int KeywordRaise = 14092

KeywordReturn

Gets the KeywordReturn token ID.

public const int KeywordReturn = 14093

KeywordTrue

Gets the KeywordTrue token ID.

public const int KeywordTrue = 14094

KeywordTry

Gets the KeywordTry token ID.

public const int KeywordTry = 14095

KeywordWhile

Gets the KeywordWhile token ID.

public const int KeywordWhile = 14096

KeywordWith

Gets the KeywordWith token ID.

public const int KeywordWith = 14097

KeywordYield

Gets the KeywordYield token ID.

public const int KeywordYield = 14098

LineContinuation

Gets the LineContinuation token ID.

public const int LineContinuation = 14002

LineTerminator

Gets the LineTerminator token ID.

public const int LineTerminator = 14001

LiteralBinaryInteger

Gets the LiteralBinaryInteger token ID.

public const int LiteralBinaryInteger = 14052

LiteralBytes

Gets the LiteralBytes token ID.

public const int LiteralBytes = 14051

LiteralDecimalInteger

Gets the LiteralDecimalInteger token ID.

public const int LiteralDecimalInteger = 14053

LiteralDoubleQuoteLongString

Gets the LiteralDoubleQuoteLongString token ID.

public const int LiteralDoubleQuoteLongString = 14055

LiteralDoubleQuoteString

Gets the LiteralDoubleQuoteString token ID.

public const int LiteralDoubleQuoteString = 14054

LiteralHexadecimalInteger

Gets the LiteralHexadecimalInteger token ID.

public const int LiteralHexadecimalInteger = 14056

LiteralImaginary

Gets the LiteralImaginary token ID.

public const int LiteralImaginary = 14057

LiteralOctalInteger

Gets the LiteralOctalInteger token ID.

public const int LiteralOctalInteger = 14058

LiteralReal

Gets the LiteralReal token ID.

public const int LiteralReal = 14059

LiteralSingleQuoteLongString

Gets the LiteralSingleQuoteLongString token ID.

public const int LiteralSingleQuoteLongString = 14061

LiteralSingleQuoteString

Gets the LiteralSingleQuoteString token ID.

public const int LiteralSingleQuoteString = 14060

OpenCurlyBrace

Gets the OpenCurlyBrace token ID.

public const int OpenCurlyBrace = 14007

OpenParenthesis

Gets the OpenParenthesis token ID.

public const int OpenParenthesis = 14003

OpenSquareBrace

Gets the OpenSquareBrace token ID.

public const int OpenSquareBrace = 14005

OperatorAddition

Gets the OperatorAddition token ID.

public const int OperatorAddition = 14016

OperatorAdditionAssignment

Gets the OperatorAdditionAssignment token ID.

public const int OperatorAdditionAssignment = 14037

OperatorAssignment

Gets the OperatorAssignment token ID.

public const int OperatorAssignment = 14036

OperatorBitwiseAnd

Gets the OperatorBitwiseAnd token ID.

public const int OperatorBitwiseAnd = 14026

OperatorBitwiseAndAssignment

Gets the OperatorBitwiseAndAssignment token ID.

public const int OperatorBitwiseAndAssignment = 14045

OperatorBitwiseOr

Gets the OperatorBitwiseOr token ID.

public const int OperatorBitwiseOr = 14027

OperatorBitwiseOrAssignment

Gets the OperatorBitwiseOrAssignment token ID.

public const int OperatorBitwiseOrAssignment = 14046

OperatorDivision

Gets the OperatorDivision token ID.

public const int OperatorDivision = 14021

OperatorDivisionAssignment

Gets the OperatorDivisionAssignment token ID.

public const int OperatorDivisionAssignment = 14042

OperatorEquality

Gets the OperatorEquality token ID.

public const int OperatorEquality = 14034

OperatorExclusiveOr

Gets the OperatorExclusiveOr token ID.

public const int OperatorExclusiveOr = 14028

OperatorExclusiveOrAssignment

Gets the OperatorExclusiveOrAssignment token ID.

public const int OperatorExclusiveOrAssignment = 14047

OperatorFloorDivision

Gets the OperatorFloorDivision token ID.

public const int OperatorFloorDivision = 14022

OperatorFloorDivisionAssignment

Gets the OperatorFloorDivisionAssignment token ID.

public const int OperatorFloorDivisionAssignment = 14043

OperatorGreaterThan

Gets the OperatorGreaterThan token ID.

public const int OperatorGreaterThan = 14031

OperatorGreaterThanOrEqual

Gets the OperatorGreaterThanOrEqual token ID.

public const int OperatorGreaterThanOrEqual = 14033

OperatorInequality

Gets the OperatorInequality token ID.

public const int OperatorInequality = 14035

OperatorLeftShift

Gets the OperatorLeftShift token ID.

public const int OperatorLeftShift = 14024

OperatorLeftShiftAssignment

Gets the OperatorLeftShiftAssignment token ID.

public const int OperatorLeftShiftAssignment = 14048

OperatorLessThan

Gets the OperatorLessThan token ID.

public const int OperatorLessThan = 14030

OperatorLessThanOrEqual

Gets the OperatorLessThanOrEqual token ID.

public const int OperatorLessThanOrEqual = 14032

OperatorMatrixMultiplication

Gets the OperatorMatrixMultiplication token ID.

public const int OperatorMatrixMultiplication = 14019

OperatorMatrixMultiplicationAssignment

Gets the OperatorMatrixMultiplicationAssignment token ID.

public const int OperatorMatrixMultiplicationAssignment = 14040

OperatorModulus

Gets the OperatorModulus token ID.

public const int OperatorModulus = 14023

OperatorModulusAssignment

Gets the OperatorModulusAssignment token ID.

public const int OperatorModulusAssignment = 14044

OperatorMultiplication

Gets the OperatorMultiplication token ID.

public const int OperatorMultiplication = 14018

OperatorMultiplicationAssignment

Gets the OperatorMultiplicationAssignment token ID.

public const int OperatorMultiplicationAssignment = 14039

OperatorOnesComplement

Gets the OperatorOnesComplement token ID.

public const int OperatorOnesComplement = 14029

OperatorPower

Gets the OperatorPower token ID.

public const int OperatorPower = 14020

OperatorPowerAssignment

Gets the OperatorPowerAssignment token ID.

public const int OperatorPowerAssignment = 14041

OperatorRightShift

Gets the OperatorRightShift token ID.

public const int OperatorRightShift = 14025

OperatorRightShiftAssignment

Gets the OperatorRightShiftAssignment token ID.

public const int OperatorRightShiftAssignment = 14049

OperatorSubtraction

Gets the OperatorSubtraction token ID.

public const int OperatorSubtraction = 14017

OperatorSubtractionAssignment

Gets the OperatorSubtractionAssignment token ID.

public const int OperatorSubtractionAssignment = 14038

OperatorWalrus

Gets the OperatorWalrus token ID.

public const int OperatorWalrus = 14050

ReverseQuote

Gets the ReverseQuote token ID.

public const int ReverseQuote = 14013

RightArrow

Gets the RightArrow token ID.

public const int RightArrow = 14014

SemiColon

Gets the SemiColon token ID.

public const int SemiColon = 14012

SystemIdentifier

Gets the SystemIdentifier token ID.

public const int SystemIdentifier = 14063

Whitespace

Gets the Whitespace token ID.

public const int Whitespace = 14000

Inherited Members