The ezr² Project 0.1.1
The codebase for the ezr² programming language.
Loading...
Searching...
No Matches
EzrSquared.Syntax.Errors Namespace Reference

Functions

class SyntaxError (string title, string details, Position startPosition, Position endPosition)
 Error class for all syntax error.
 

Function Documentation

◆ SyntaxError()

class EzrSquared.Syntax.Errors.SyntaxError ( string title,
string details,
Position startPosition,
Position endPosition )

Error class for all syntax error.

Parameters
titleThe title of the SyntaxError.
detailsThe reason why the SyntaxError occurred.
startPositionThe starting Position of the SyntaxError.
endPositionThe ending Position of the SyntaxError.

An unexpected character was encountered.

An invalid hexadecimal value was encountered.

Invalid grammar was encountered.

The name of the SyntaxError.

The reason why the SyntaxError occurred.

The starting Position of the SyntaxError.

The ending Position of the SyntaxError.

Creates the formatted text representation of the SyntaxError.

Returns
The formatted text.