From 777c20de7791fd254ce747f7d7ab4b681c5a6001 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 17 Aug 2019 18:46:00 +0200 Subject: Renaming and semantic testing --- src/runMain/kotlin/exceptions/LexicalError.kt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/runMain/kotlin/exceptions/LexicalError.kt (limited to 'src/runMain/kotlin/exceptions/LexicalError.kt') diff --git a/src/runMain/kotlin/exceptions/LexicalError.kt b/src/runMain/kotlin/exceptions/LexicalError.kt new file mode 100644 index 0000000..a891d3f --- /dev/null +++ b/src/runMain/kotlin/exceptions/LexicalError.kt @@ -0,0 +1,6 @@ +package exceptions + +/** + * Gets thrown if the entered token/code does not exist in this language + */ +class LexicalError(token: String = "") : Exception("Token type not known: $token") \ No newline at end of file -- cgit v1.2.3