Class LexemParser.LexemParserEnumerator
Reprsents a class that provides enumerator for lexem parser that is used to make lexem parsing of the file, based on some starting stack.
Inheritance
System.Object
LexemParser.LexemParserEnumerator
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: Syncfusion.Windows.Forms.Edit.Implementation.Parser
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class LexemParserEnumerator : IEnumerator, ILexemEnumeratorParserInfo
Constructors
LexemParserEnumerator(ConfigStack, LexemParser)
Initializes a new instance of the LexemParser.LexemParserEnumerator class.
Declaration
public LexemParserEnumerator(ConfigStack stack, LexemParser parser)
Parameters
Type | Name | Description |
---|---|---|
ConfigStack | stack | Stack, that will be used as start point for parsing. |
LexemParser | parser | Parser instance. |
Properties
Current
Gets the current lexem.
Declaration
public object Current { get; }
Property Value
Type |
---|
System.Object |
CurrentPosition
Gets the current stream position.
Declaration
public long CurrentPosition { get; }
Property Value
Type |
---|
System.Int64 |
CurrentStack
Gets the currently opened lexem.
Declaration
public ConfigStack CurrentStack { get; }
Property Value
Type |
---|
ConfigStack |
Methods
MoveNext()
Moves to the next level.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | True if moved successfully, false if end of the stream reached. |
Reset()
Initializes enumerator and parser by initial parameters.
Declaration
public void Reset()
Implements
System.Collections.IEnumerator