Class LaconfigLexer
Performs lexical analysis on source supplied in Laconfig syntax. This class supports lazy analysis that happens gradually as result tokens are consumed through IEnumerable interface.
Inheritance
System.Object
LaconfigLexer
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)
Namespace: Azos.CodeAnalysis.Laconfig
Assembly: Azos.dll
Syntax
public sealed class LaconfigLexer : Lexer<LaconfigToken>, IConfigurable, ILexer, ICodeProcessor, IEnumerable<LaconfigToken>, IEnumerable
Constructors
LaconfigLexer(IAnalysisContext, ISourceText, MessageList, Boolean)
Declaration
public LaconfigLexer(IAnalysisContext context, ISourceText source, MessageList messages = null, bool throwErrors = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IAnalysisContext | context | |
| ISourceText | source | |
| MessageList | messages | |
| System.Boolean | throwErrors |
LaconfigLexer(IAnalysisContext, SourceCodeRef, ISourceText, MessageList, Boolean)
Declaration
public LaconfigLexer(IAnalysisContext context, SourceCodeRef srcRef, ISourceText source, MessageList messages = null, bool throwErrors = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IAnalysisContext | context | |
| SourceCodeRef | srcRef | |
| ISourceText | source | |
| MessageList | messages | |
| System.Boolean | throwErrors |
LaconfigLexer(ISourceText, MessageList, Boolean)
Declaration
public LaconfigLexer(ISourceText source, MessageList messages = null, bool throwErrors = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ISourceText | source | |
| MessageList | messages | |
| System.Boolean | throwErrors |
Properties
Language
Declaration
public override Language Language { get; }
Property Value
| Type | Description |
|---|---|
| Language |
Overrides
Methods
DoLexingChunk()
Declaration
protected override bool DoLexingChunk()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Azos.CodeAnalysis.Lexer<Azos.CodeAnalysis.Laconfig.LaconfigToken>.DoLexingChunk()
MessageCodeToString(Int32)
Declaration
public override string MessageCodeToString(int code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | code |
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable