Class LexerRegexRule
Base class for token rules in 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 abstract class LexerRegexRule
Constructors
| Improve this Doc View SourceLexerRegexRule(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 SourceIgnoreCase
Gets a value indicating whether case of characters in regular expression is ignored.
Declaration
public bool IgnoreCase { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets name of lexer rule.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
RegularExpression
Gets a regular expression of lexer rule.
Declaration
public Regex RegularExpression { get; }
Property Value
Type | Description |
---|---|
System.Text.RegularExpressions.Regex |
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 SourceClone()
Clones the rule.
Declaration
public abstract LexerRegexRule Clone()
Returns
Type | Description |
---|---|
LexerRegexRule | Clone of the rule. |