diff options
Diffstat (limited to 'src/Lexical.kt')
-rw-r--r-- | src/Lexical.kt | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/Lexical.kt b/src/Lexical.kt index 1655805..df60a8e 100644 --- a/src/Lexical.kt +++ b/src/Lexical.kt @@ -13,6 +13,7 @@ class Lexical { if (buffer == "\"") stringMode = true buffer = "" } + if (tokenType == TokenType.Empty) buffer = "" } return tokens } @@ -65,18 +66,3 @@ class Lexical { private val brackets = listOf("(", ")", "[", "]", "{", "}") // TODO: Use brackets for functions private val classifier = listOf("\"") // TODO: Add char mode e.g 'a' } - -enum class TokenType { - Keyword, - Assignment, - Arithmetic, - Comparison, - Logical, - Identifier, - Constant, - Punctuation, - Bracket, - Classifier, - Empty, - Skip -}
\ No newline at end of file |