ref: 3e8a232eae0fa165d8045f73657d5259e3ad078c
parent: ecf804181e6f13348bd04382fd4c1cb3b60431be
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jan 26 18:32:32 EST 2016
Fix operator printing in ctxstring. The operator and the type were swapped. Oops.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -159,7 +159,7 @@
t3 = nodetystr(st, args[2]);
switch (opclass[exprop(n)]) {
- case OTpre: bprintf(buf, sizeof buf, "%s<e%s>", t1, oppretty[exprop(n)]); break;
+ case OTpre: bprintf(buf, sizeof buf, "%s<e:%s>", oppretty[exprop(n)], t1); break;
case OTpost: bprintf(buf, sizeof buf, "<e:%s>%s", t1, oppretty[exprop(n)]); break;
case OTzarg: bprintf(buf, sizeof buf, "%s", oppretty[exprop(n)]); break;
case OTbin: