Table of Contents

Class CompilationResult

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

Result of compiling PL/0 source code.

public sealed class CompilationResult
Inheritance
CompilationResult
Inherited Members

Constructors

CompilationResult(IReadOnlyList<Instruction>, IReadOnlyList<CompilerDiagnostic>)

Creates a new compilation result.

public CompilationResult(IReadOnlyList<Instruction> instructions, IReadOnlyList<CompilerDiagnostic> diagnostics)

Parameters

instructions IReadOnlyList<Instruction>

Generated P-Code instructions.

diagnostics IReadOnlyList<CompilerDiagnostic>

Diagnostics produced during compilation.

Properties

Diagnostics

Gets the diagnostics produced during compilation.

public IReadOnlyList<CompilerDiagnostic> Diagnostics { get; }

Property Value

IReadOnlyList<CompilerDiagnostic>

Instructions

Gets the generated P-Code instructions.

public IReadOnlyList<Instruction> Instructions { get; }

Property Value

IReadOnlyList<Instruction>

Success

Gets a value indicating whether compilation succeeded without diagnostics.

public bool Success { get; }

Property Value

bool