Separated parser class nodes and began writing compile methods

This commit is contained in:
Thaum Rystra
2019-04-06 10:56:53 +02:00
parent d21827106c
commit b7b0ac9c00
14 changed files with 167 additions and 207 deletions

View File

@@ -0,0 +1,11 @@
import ParseNode from '/imports/parser/parseTree/ParseNode.js';
export default class OperatorNode extends ParseNode {
constructor({left, right, operator, fn}) {
super();
this.left = left;
this.right = right;
this.fn = fn;
this.operator = operator;
}
}