update hscript compatibility
This commit is contained in:
@@ -106,9 +106,10 @@ class HInterface {
|
||||
|
||||
public function new(storyTree:StoryNode, viewCounts:Map<StoryNode, Int>) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user