Checkpoint

This commit is contained in:
Tibo De Peuter 2025-04-17 17:49:53 +02:00
parent e749f8c6cb
commit 48f94c30df
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
15 changed files with 175 additions and 67 deletions

View file

@ -0,0 +1,13 @@
package lexer.errors
import lexer.state.LexerPosition
data class LexingError(
val type: LexingErrorType,
override val message: String,
val position: LexerPosition
) : Throwable(
"""
${position.line}:${position.column + 1} ${type}: $message
""".trimIndent()
)