From 5707ecbabfe3b9b580fcc7b2ebdfef6a60786c40 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 15 Aug 2019 15:40:53 +0200 Subject: Began basic syntax checking --- src/runMain/kotlin/exceptions/SyntaxError.kt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/runMain/kotlin/exceptions/SyntaxError.kt (limited to 'src/runMain/kotlin/exceptions/SyntaxError.kt') diff --git a/src/runMain/kotlin/exceptions/SyntaxError.kt b/src/runMain/kotlin/exceptions/SyntaxError.kt new file mode 100644 index 0000000..3fc2a69 --- /dev/null +++ b/src/runMain/kotlin/exceptions/SyntaxError.kt @@ -0,0 +1,6 @@ +package exceptions + +/** + * Gets thrown if the syntax is wrong + */ +class SyntaxError(context: String = "") : Exception("Syntax error: $context") \ No newline at end of file -- cgit v1.2.3