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 SourceLexerDynamicRule(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 SourceAction
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>> |
Prefix
Declaration
public string Prefix { get; }
Property Value
Type | Description |
---|---|
System.String |
PrefixExpression
Gets a regular expression of lexer rule.
Declaration
public Regex PrefixExpression { get; }
Property Value
Type | Description |
---|---|
System.Text.RegularExpressions.Regex |
PreviousReturnedTokenTypes
Declaration
public int[] PreviousReturnedTokenTypes { get; }
Property Value
Type | Description |
---|---|
System.Int32[] |
RuleName
Declaration
public string RuleName { get; }
Property Value
Type | Description |
---|---|
System.String |
TokenType
Declaration
public int TokenType { get; }
Property Value
Type | Description |
---|---|
System.Int32 |