Show / Hide Table of Contents

Class LexerGrammar<TLexerState>

Lexer grammar. It contains a collection of lexer token rules.

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

    where TLexerState : LexerState
Type Parameters
Name Description
TLexerState

A type of lexer state.

Constructors

| Improve this Doc View Source

LexerGrammar(ICollection<LexerTokenRule<TLexerState>>, ICollection<LexerDynamicRule>)

Initializes a new instance of the LexerGrammar<TLexerState> class.

Declaration
public LexerGrammar(ICollection<LexerTokenRule<TLexerState>> lexerRules, ICollection<LexerDynamicRule> dynamicRules)
Parameters
Type Name Description
System.Collections.Generic.ICollection<LexerTokenRule<TLexerState>> lexerRules

A collection of lexer rules.

System.Collections.Generic.ICollection<LexerDynamicRule> dynamicRules

A collection of dynamic lexer rules.

Properties

| Improve this Doc View Source

DynamicRules

Gets lexer dynamic rules.

Declaration
public ICollection<LexerDynamicRule> DynamicRules { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<LexerDynamicRule>
| Improve this Doc View Source

RegexRules

Gets lexer regex rules.

Declaration
public ICollection<LexerTokenRule<TLexerState>> RegexRules { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<LexerTokenRule<TLexerState>>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX