mirror of
https://github.com/Noratrieb/uwucc.git
synced 2026-01-14 16:45:07 +01:00
more
This commit is contained in:
parent
542c0daf6a
commit
86b924f5e3
7 changed files with 171 additions and 67 deletions
|
|
@ -23,6 +23,8 @@ pub enum Atom {
|
|||
|
||||
#[derive(Debug, DebugPls)]
|
||||
pub enum UnaryOp {
|
||||
Increment,
|
||||
Decrement,
|
||||
AddrOf,
|
||||
Deref,
|
||||
Plus,
|
||||
|
|
|
|||
|
|
@ -376,6 +376,8 @@ impl<W: Write> PrettyPrinter<W> {
|
|||
|
||||
fn unary(&mut self, unary: &ExprUnary) -> Result {
|
||||
self.string(match unary.op {
|
||||
UnaryOp::Increment => "++",
|
||||
UnaryOp::Decrement => "--",
|
||||
UnaryOp::AddrOf => "&",
|
||||
UnaryOp::Deref => "*",
|
||||
UnaryOp::Plus => "+",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue