working in-game error diagnostics. memory access violation bug present. Need to debug

This commit is contained in:
2025-12-01 14:50:05 -07:00
parent 25d9222bd4
commit 8ea274f3bf
5 changed files with 81 additions and 64 deletions

View File

@@ -31,16 +31,16 @@ quick_error! {
source(err)
}
UnexpectedToken(span: Span, token: Token) {
display("Unexpected token: {:?}", token)
display("Unexpected token: {}", token.token_type)
}
DuplicateIdentifier(span: Span, token: Token) {
display("Duplicate identifier: {:?}", token)
display("Duplicate identifier: {}", token.token_type)
}
InvalidSyntax(span: Span, reason: String) {
display("Invalid syntax: {:?}, Reason: {}", span, reason)
display("Invalid syntax: {}", reason)
}
UnsupportedKeyword(span: Span, token: Token) {
display("Unsupported keyword: {:?}", token)
display("Unsupported keyword: {}", token.token_type)
}
UnexpectedEOF {
display("Unexpected EOF")