Show / Hide Table of Contents

Class Lexer

A lexer that will tokenize expressions.

Inheritance
System.Object
Lexer
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.Expressions
Assembly: SpiceSharpParser.dll
Syntax
public class Lexer

Constructors

| Improve this Doc View Source

Lexer(String)

Initializes a new instance of the Lexer class.

Declaration
public Lexer(string expression)
Parameters
Type Name Description
System.String expression

The expression.

Properties

| Improve this Doc View Source

BuilderLength

Gets the builder length.

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

Content

Gets the content.

Declaration
public string Content { get; }
Property Value
Type Description
System.String

The content.

| Improve this Doc View Source

Current

Gets the current character.

Declaration
public char Current { get; }
Property Value
Type Description
System.Char

The current character.

| Improve this Doc View Source

Index

Gets or sets the index.

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

LastToken

Gets the last token.

Declaration
public TokenType LastToken { get; }
Property Value
Type Description
TokenType

The last token.

| Improve this Doc View Source

Token

Gets the token.

Declaration
public TokenType Token { get; }
Property Value
Type Description
TokenType

The type.

Methods

| Improve this Doc View Source

ReadNode()

Reads the next node.

Declaration
public void ReadNode()
| Improve this Doc View Source

ReadToken()

Reads the next token.

Declaration
public void ReadToken()
| Improve this Doc View Source

Reset()

Resets the lexer to the start of the input.

Declaration
public void Reset()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX