refactor(ast): Improve error type, remove unnecessary eof judge
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ impl std::fmt::Display for TokenValue {
|
||||
TokenValue::Return => write!(f, "return"),
|
||||
TokenValue::Break => write!(f, "break"),
|
||||
TokenValue::Continue => write!(f, "continue"),
|
||||
TokenValue::Eof => write!(f, "<EOF>"),
|
||||
TokenValue::Eof => write!(f, "end of input"),
|
||||
TokenValue::Unrecognized => write!(f, "unrecognized"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user