Added draft code for handling "require []"

This commit is contained in:
djmaze 2021-01-15 00:14:45 +01:00
parent d9865e3a46
commit 43c669e629
8 changed files with 36 additions and 9 deletions

View file

@ -15,9 +15,10 @@ class Ereject extends Grammar.Command
{
super('ereject');
this._reason = new Grammar.QuotedString;
// this.require = 'ereject';
}
get require() { return 'ereject'; }
toString()
{
return 'ereject ' + this._reason + ';';
@ -50,9 +51,10 @@ class Reject extends Grammar.Command
{
super('reject');
this._reason = new Grammar.QuotedString;
// this.require = 'reject';
}
get require() { return 'reject'; }
toString()
{
return 'reject ' + this._reason + ';';