diff options
Diffstat (limited to 'src/runMain/kotlin/exceptions/SyntaxError.kt')
-rw-r--r-- | src/runMain/kotlin/exceptions/SyntaxError.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runMain/kotlin/exceptions/SyntaxError.kt b/src/runMain/kotlin/exceptions/SyntaxError.kt index 952187e..8609d38 100644 --- a/src/runMain/kotlin/exceptions/SyntaxError.kt +++ b/src/runMain/kotlin/exceptions/SyntaxError.kt @@ -1,8 +1,6 @@ package exceptions -import Token - /** * Gets thrown if the syntax is wrong */ -class SyntaxError(context: Token) : Exception("Unexpected ${context.type}: ${context.content}")
\ No newline at end of file +class SyntaxError(description: String, context: String) : Exception("Unexpected $description: $context")
\ No newline at end of file |