Enhanced C#
Language of your choice: library documentation
Properties | List of all members
Loyc.Syntax.Lexing.ISimpleToken< TokenType > Interface Template Reference

Basic information about a token as expected by BaseParser<Token>: a token Type, which is the type of a "word" in the program (string, identifier, plus sign, etc.), a value (e.g. the name of an identifier), and an index where the token starts in the source file. More...


Source file:
Inheritance diagram for Loyc.Syntax.Lexing.ISimpleToken< TokenType >:
Loyc.IHasValue< object >

Remarks

Basic information about a token as expected by BaseParser<Token>: a token Type, which is the type of a "word" in the program (string, identifier, plus sign, etc.), a value (e.g. the name of an identifier), and an index where the token starts in the source file.

Alias for ISimpleToken{int}.

Properties

TokenType Type [get]
 The category of the token (integer, keyword, etc.) used as the primary value for identifying the token in a parser. More...
 
int StartIndex [get]
 Character index where the token starts in the source file. More...
 
- Properties inherited from Loyc.IHasValue< object >
Value [get]
 

Property Documentation

◆ StartIndex

int Loyc.Syntax.Lexing.ISimpleToken< TokenType >.StartIndex
get

Character index where the token starts in the source file.

Referenced by Loyc.Syntax.BaseParser< Token >.LaIndexToCharIndex().

◆ Type

TokenType Loyc.Syntax.Lexing.ISimpleToken< TokenType >.Type
get

The category of the token (integer, keyword, etc.) used as the primary value for identifying the token in a parser.