Class Token
A token produces by Lexer<TLexerState>.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SpiceSharpParser.Lexers
Assembly: SpiceSharpParser.dll
Syntax
public class Token : ILocationProvider
Constructors
| Improve this Doc View SourceToken(Int32, String, Int32, Int32, String)
Initializes a new instance of the Token class.
Declaration
public Token(int tokenType, string lexem, int lineNumber, int startColumnIndex, string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tokenType | |
System.String | lexem | |
System.Int32 | lineNumber | |
System.Int32 | startColumnIndex | |
System.String | fileName |
Properties
| Improve this Doc View SourceEndColumnIndex
Gets end column index.
Declaration
public int EndColumnIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
FileName
Gets or sets token file name.
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Lexem
Gets token lexem.
Declaration
public string Lexem { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LineNumber
Gets or sets token line number.
Declaration
public int LineNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartColumnIndex
Gets or sets start column index.
Declaration
public int StartColumnIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Gets token type.
Declaration
public int Type { get; }
Property Value
Type | Description |
---|---|
System.Int32 |