SemanticError

data class SemanticError(var type: SemanticError.Type, var line: Int) : CompilationError

Used to define semantic error

Example

int a="test"; // TYPE_MISMATCH semantic error

Constructors

Link copied to clipboard
constructor(type: SemanticError.Type, line: Int)

Types

Link copied to clipboard

Used to classify semantic error types

Properties

Link copied to clipboard
var line: Int

represents the line on which the semantic error is located

Link copied to clipboard

represents the type of semantic error that occurred