Table of Contents

Class CompilerCliOptions

Namespace
Pl0.Cli.Cli
Assembly
Pl0.Cli.dll

Parsed CLI options for the compiler and VM.

public sealed class CompilerCliOptions
Inheritance
CompilerCliOptions
Inherited Members

Properties

Command

Gets the selected CLI command.

public CliCommand Command { get; init; }

Property Value

CliCommand

CompileOnly

Gets a value indicating whether compilation should stop before running the VM.

public bool CompileOnly { get; init; }

Property Value

bool

EmitMode

Gets the emit mode selection.

public EmitMode EmitMode { get; init; }

Property Value

EmitMode

EmitRequested

Gets a value indicating whether an emit output was requested.

public bool EmitRequested { get; init; }

Property Value

bool

Language

Gets the BCP-47-Sprachcode aus dem --lang-Parameter (Standard: "de").

public string Language { get; init; }

Property Value

string

ListCode

Gets a value indicating whether code listing should be printed.

public bool ListCode { get; init; }

Property Value

bool

LongErrorMessages

Gets a value indicating whether long error messages are enabled.

public bool LongErrorMessages { get; init; }

Property Value

bool

OutputPath

Gets the output path for emitted P-Code.

public string? OutputPath { get; init; }

Property Value

string

ShowApi

Gets a value indicating whether the documentation API should be shown.

public bool ShowApi { get; init; }

Property Value

bool

ShowHelp

Gets a value indicating whether help text was requested.

public bool ShowHelp { get; init; }

Property Value

bool

SourcePath

Gets the source path provided on the command line.

public string? SourcePath { get; init; }

Property Value

string

WriteOpcodesInListing

Gets a value indicating whether opcode numbers are included in listings.

public bool WriteOpcodesInListing { get; init; }

Property Value

bool