Table of Contents

Struct LexerDiagnostic

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

Diagnostic information produced by the lexer.

public readonly record struct LexerDiagnostic : IEquatable<LexerDiagnostic>
Implements
Inherited Members

Constructors

LexerDiagnostic(int, string, TextPosition)

Diagnostic information produced by the lexer.

public LexerDiagnostic(int Code, string Message, TextPosition Position)

Parameters

Code int

The diagnostic code.

Message string

Human-readable message.

Position TextPosition

Source position where the diagnostic occurred.

Properties

Code

The diagnostic code.

public int Code { get; init; }

Property Value

int

Message

Human-readable message.

public string Message { get; init; }

Property Value

string

Position

Source position where the diagnostic occurred.

public TextPosition Position { get; init; }

Property Value

TextPosition