Class LexerResult
Result of lexical analysis containing tokens and diagnostics.
public sealed class LexerResult
- Inheritance
-
LexerResult
- Inherited Members
Constructors
LexerResult(IReadOnlyList<Pl0Token>, IReadOnlyList<LexerDiagnostic>)
Creates a new lexer result.
public LexerResult(IReadOnlyList<Pl0Token> tokens, IReadOnlyList<LexerDiagnostic> diagnostics)
Parameters
tokensIReadOnlyList<Pl0Token>The lexed tokens.
diagnosticsIReadOnlyList<LexerDiagnostic>Diagnostics produced by the lexer.
Properties
Diagnostics
Gets the diagnostics produced by the lexer.
public IReadOnlyList<LexerDiagnostic> Diagnostics { get; }
Property Value
Tokens
Gets the tokens produced by the lexer.
public IReadOnlyList<Pl0Token> Tokens { get; }