Show / Hide Table of Contents

Class LexerDynamicRule

Inheritance
System.Object
LexerDynamicRule
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 LexerDynamicRule

Constructors

| Improve this Doc View Source

LexerDynamicRule(Int32, String, String, Func<String, LexerState, Tuple<String, Int32>>, Int32[])

Initializes a new instance of the LexerDynamicRule class.

Declaration
public LexerDynamicRule(int tokenType, string ruleName, string prefix, Func<string, LexerState, Tuple<string, int>> action, int[] previousReturnedTokenTypes = null)
Parameters
Type Name Description
System.Int32 tokenType
System.String ruleName
System.String prefix
System.Func<System.String, LexerState, System.Tuple<System.String, System.Int32>> action
System.Int32[] previousReturnedTokenTypes

Properties

| Improve this Doc View Source

Action

Declaration
public Func<string, LexerState, Tuple<string, int>> Action { get; }
Property Value
Type Description
System.Func<System.String, LexerState, System.Tuple<System.String, System.Int32>>
| Improve this Doc View Source

Prefix

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

PrefixExpression

Gets a regular expression of lexer rule.

Declaration
public Regex PrefixExpression { get; }
Property Value
Type Description
System.Text.RegularExpressions.Regex
| Improve this Doc View Source

PreviousReturnedTokenTypes

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

RuleName

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

TokenType

Declaration
public int TokenType { get; }
Property Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX