ParsingError

class ParsingError(location: SourceLocation, actualToken: String, expectedTokens: List<String>) : CompilationError

Thrown when the parser runs into an unexpected token.

Parameters

location

Source location of the unexpected token.

actualToken

Token that was encountered.

expectedTokens

Tokens that would have been valid.

Constructors

Link copied to clipboard
fun ParsingError(location: SourceLocation, actualToken: String, expectedTokens: List<String>)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun toDocument(): Document
Link copied to clipboard
override fun toString(): String

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?