working in-game error diagnostics. memory access violation bug present. Need to debug
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -19,18 +19,18 @@ quick_error! {
|
||||
source(err)
|
||||
}
|
||||
NumberParseError(err: std::num::ParseIntError, line: usize, column: usize, original: String) {
|
||||
display("Number Parse Error: {}\nLine: {}, Column: {}", err, line, column)
|
||||
display("Number Parse Error: {}", err)
|
||||
source(err)
|
||||
}
|
||||
DecimalParseError(err: rust_decimal::Error, line: usize, column: usize, original: String) {
|
||||
display("Decimal Parse Error: {}\nLine: {}, Column: {}", err, line, column)
|
||||
display("Decimal Parse Error: {}", err)
|
||||
source(err)
|
||||
}
|
||||
UnknownSymbolError(char: char, line: usize, column: usize, original: String) {
|
||||
display("Unknown Symbol: {}\nLine: {}, Column: {}", char, line, column)
|
||||
display("Unknown Symbol: {}", char)
|
||||
}
|
||||
UnknownKeywordOrIdentifierError(val: String, line: usize, column: usize, original: String) {
|
||||
display("Unknown Keyword or Identifier: {}\nLine: {}, Column: {}", val, line, column)
|
||||
display("Unknown Keyword or Identifier: {}", val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user