Class LexerState
A base class for lexer state classes. It contains a type of previous token.
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 LexerState
Properties
| Improve this Doc View SourceBeforeLineBreak
Gets or sets a value indicating whether lexem is before a line break character.
Declaration
public bool BeforeLineBreak { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CurrentRuleRegex
Gets or sets the current regex rule.
Declaration
public Regex CurrentRuleRegex { get; set; }
Property Value
Type | Description |
---|---|
System.Text.RegularExpressions.Regex |
FullMatch
Gets or sets a value indicating whether lexem is a full match.
Declaration
public bool FullMatch { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LineNumber
Gets or sets the current line number.
Declaration
public int LineNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NewLine
Gets or sets a value indicating whether the lexer is lexing new line.
Declaration
public bool NewLine { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PreviousReturnedTokenType
Gets or sets type of previously returned token by lexer.
Declaration
public int PreviousReturnedTokenType { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartColumnIndex
Gets or sets the start column index.
Declaration
public int StartColumnIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |