//Seed.print('@' + tokens.length);
var n = this.findPuncToken(tokens, ")");
//Seed.print(')@' + n);
//Seed.print('@' + tokens.length);
var n = this.findPuncToken(tokens, ")");
//Seed.print(')@' + n);
//print(JSON.stringify(lt));
if (lt.type != "KEYW" || ["IF", 'WHILE'].indexOf(lt.name) < -1) {
if (!this.ignoreBadGrammer) {
//print(JSON.stringify(lt));
if (lt.type != "KEYW" || ["IF", 'WHILE'].indexOf(lt.name) < -1) {
if (!this.ignoreBadGrammer) {
- throw {
- name : "ArgumentError",
- message: "\n" + this.filename + ':' + this.line + " Error - return found after )"
- }
+ throw new TokenReader_Error.ArgumentError(
+ this.filename + ":" + this.line + " Error - return found after )"
+ );
tokens.push(new Token(found, "KEYW", name, this.line));
return true;
}
tokens.push(new Token(found, "KEYW", name, this.line));
return true;
}
if (!this.sepIdents || found.indexOf('.') < 0 ) {
tokens.push(new Token(found, "NAME", "NAME", this.line));
return true;
}
var n = found.split('.');
var p = false;
if (!this.sepIdents || found.indexOf('.') < 0 ) {
tokens.push(new Token(found, "NAME", "NAME", this.line));
return true;
}
var n = found.split('.');
var p = false;
- tokens.push(new Token('.', "PUNC", "DOT", _this.line));
+ tokens.push(new Token('.', "PUNC", "DOT", this.line));
- tokens.push(new Token(nm, "NAME", "NAME", _this.line));
- });
+ tokens.push(new Token(nm, "NAME", "NAME", this.line));
+ }
//print("Error - comma found before " + found);
//print(JSON.stringify(tokens.lastSym(), null,4));
if (this.ignoreBadGrammer) {
//print("Error - comma found before " + found);
//print(JSON.stringify(tokens.lastSym(), null,4));
if (this.ignoreBadGrammer) {