Lots of work on the parser including testing interface
This commit is contained in:
15
app/imports/parser/parseTree/ErrorNode.js
Normal file
15
app/imports/parser/parseTree/ErrorNode.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import ParseNode from '/imports/parser/parseTree/ParseNode.js';
|
||||
|
||||
export default class ErrorNode extends ParseNode {
|
||||
constructor({node, error}) {
|
||||
super();
|
||||
this.node = node;
|
||||
this.error = error;
|
||||
}
|
||||
compile(){
|
||||
return this;
|
||||
}
|
||||
toString(){
|
||||
return '###';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user