Table of Contents

Class LexerResult

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

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

tokens IReadOnlyList<Pl0Token>

The lexed tokens.

diagnostics IReadOnlyList<LexerDiagnostic>

Diagnostics produced by the lexer.

Properties

Diagnostics

Gets the diagnostics produced by the lexer.

public IReadOnlyList<LexerDiagnostic> Diagnostics { get; }

Property Value

IReadOnlyList<LexerDiagnostic>

Tokens

Gets the tokens produced by the lexer.

public IReadOnlyList<Pl0Token> Tokens { get; }

Property Value

IReadOnlyList<Pl0Token>