Add a "deref" unary operator.

This commit is contained in:
Nigel Tao committed 2017-10-20 15:44:30 +11:00
1 parent 51bd52239b
commit 2cd6ebed8e
8 files changed
+55 -53

No files matched your search

+2
View File
@@ -138,6 +138,8 @@ var opStrings = [256]string{
t.KeyXUnaryPlus: "+",
t.KeyXUnaryMinus: "-",
t.KeyXUnaryNot: "not ",
t.KeyXUnaryRef: "ref ",
t.KeyXUnaryDeref: "deref ",
t.KeyXBinaryPlus: " + ",
t.KeyXBinaryMinus: " - ",