Replaced old parser with new parser
This commit is contained in:
@@ -53,4 +53,9 @@ export default class OperatorNode extends ParseNode {
|
||||
let {left, right, operator} = this;
|
||||
return `${left.toString()} ${operator} ${right.toString()}`;
|
||||
}
|
||||
traverse(fn){
|
||||
fn(this);
|
||||
this.left.traverse(fn);
|
||||
this.right.traverse(fn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user