Show / Hide Table of Contents

Class LexerRegexRule

Base class for token rules in LexerGrammar<TLexerState>.

Inheritance
System.Object
LexerRegexRule
LexerInternalRule
LexerTokenRule<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 abstract class LexerRegexRule

Constructors

| Improve this Doc View Source

LexerRegexRule(String, String, Boolean)

Initializes a new instance of the LexerRegexRule class.

Declaration
protected LexerRegexRule(string ruleName, string regularExpressionPattern, bool ignoreCase)
Parameters
Type Name Description
System.String ruleName

A name of lexer rule.

System.String regularExpressionPattern

A regular expression.

System.Boolean ignoreCase

Case is ignored.

Properties

| Improve this Doc View Source

IgnoreCase

Gets a value indicating whether case of characters in regular expression is ignored.

Declaration
public bool IgnoreCase { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

Gets name of lexer rule.

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

RegularExpression

Gets a regular expression of lexer rule.

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

RegularExpressionPattern

Gets or sets a regular expression pattern of lexer rule.

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

Methods

| Improve this Doc View Source

Clone()

Clones the rule.

Declaration
public abstract LexerRegexRule Clone()
Returns
Type Description
LexerRegexRule

Clone of the rule.

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