Show / Hide Table of Contents

Class Token

A token produces by Lexer<TLexerState>.

Inheritance
System.Object
Token
SpiceToken
Implements
ILocationProvider
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 Source

Token(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 Source

EndColumnIndex

Gets end column index.

Declaration
public int EndColumnIndex { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

FileName

Gets or sets token file name.

Declaration
public string FileName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Lexem

Gets token lexem.

Declaration
public string Lexem { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

LineNumber

Gets or sets token line number.

Declaration
public int LineNumber { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

StartColumnIndex

Gets or sets start column index.

Declaration
public int StartColumnIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Type

Gets token type.

Declaration
public int Type { get; }
Property Value
Type Description
System.Int32

Implements

ILocationProvider
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX