Add PreInc
This commit is contained in:
parent
4b3a09c4d5
commit
d247aa46eb
2 changed files with 3 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ pub enum UnOp {
|
|||
Not,
|
||||
Ref,
|
||||
Deref,
|
||||
PreInc
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ pub enum CUnaryOp {
|
|||
Not,
|
||||
Ref,
|
||||
Deref,
|
||||
PreInc
|
||||
}
|
||||
|
||||
impl CUnaryOp {
|
||||
|
|
@ -131,6 +132,7 @@ impl CUnaryOp {
|
|||
CUnaryOp::Not => "!",
|
||||
CUnaryOp::Ref => "&",
|
||||
CUnaryOp::Deref => "*",
|
||||
CUnaryOp::PreInc => "++"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue