diff --git a/hank/HInterface.hx b/hank/HInterface.hx index f3acb5b..c1afa69 100644 --- a/hank/HInterface.hx +++ b/hank/HInterface.hx @@ -106,9 +106,10 @@ class HInterface { public function new(storyTree:StoryNode, viewCounts:Map) { this.parser = new Parser(); - parser.unops["*"] = false; - parser.unops["&"] = false; - parser.unops["->"] = false; + // Make new unops: + for (op in ["*", "&", "->"]) { + parser.opPriority.set(op, -2); + } this.interp = new HankInterp(this); this.interp.variables['_isTruthy'] = isTruthy.bind(viewCounts);