mirror of
https://github.com/RustPython/Parser.git
synced 2025-09-11 21:06:16 +00:00
Implement new features for updated python asdl
This commit is contained in:
parent
308c82a935
commit
266b1f1aea
3 changed files with 52 additions and 40 deletions
|
@ -37,6 +37,7 @@ pub enum CompileErrorType {
|
|||
TooManyStarUnpack,
|
||||
EmptyWithItems,
|
||||
EmptyWithBody,
|
||||
NotImplementedYet, // RustPython marker for unimplemented features
|
||||
}
|
||||
|
||||
impl fmt::Display for CompileErrorType {
|
||||
|
@ -78,6 +79,9 @@ impl fmt::Display for CompileErrorType {
|
|||
CompileErrorType::EmptyWithBody => {
|
||||
write!(f, "empty body on With")
|
||||
}
|
||||
CompileErrorType::NotImplementedYet => {
|
||||
write!(f, "RustPython does not implement this feature yet")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue