Commit ddd0ad8f authored by Raphaël Rieu-Helft's avatar Raphaël Rieu-Helft

Begin work on C AST pretty-printer

parent 3b4dee5e
......@@ -15,10 +15,12 @@ module mach.int.Int32
syntax val (+) "(%1 + %2)"
syntax val (-) "(%1 - %2)"
syntax val (-_) "(-(%1))"
syntax val (*) "(%1 * %2)"
syntax val (/) "(%1 / %2)"
syntax val (%) "(%1 % %2)"
syntax val eq "(%1 = %2)"
syntax val eq "(%1 == %2)"
syntax val (=) "(%1 == %2)"
syntax val ne "(%1 != %2)"
syntax val (<=) "(%1 <= %2)"
syntax val (<) "(%1 < %2)"
......@@ -35,10 +37,12 @@ module mach.int.UInt32
syntax type uint32 "unsigned int"
syntax val (+) "(%1 + %2)"
syntax val (-) "(%1 - %2)"
syntax val (-_) "(-(%1))"
syntax val (*) "(%1 * %2)"
syntax val (/) "(%1 / %2)"
syntax val (%) "(%1 % %2)"
syntax val eq "(%1 = %2)"
syntax val eq "(%1 == %2)"
syntax val (=) "(%1 == %2)"
syntax val ne "(%1 != %2)"
syntax val (<=) "(%1 <= %2)"
syntax val (<) "(%1 < %2)"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment