Separated parser class nodes and began writing compile methods
This commit is contained in:
11
app/imports/parser/parseTree/OperatorNode.js
Normal file
11
app/imports/parser/parseTree/OperatorNode.js
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user