//Seed.print('(@' + n);
var lt = this.lastSym(tokens, n);
- Seed.print(JSON.stringify(lt));
+ print(JSON.stringify(lt));
if (lt.type != 'KEYW' || ['IF', 'WHILE'].indexOf(lt.name) < -1) {
if (!this.ignoreBadGrammer) {
throw {
if (this.collapseWhite) {
found = "\n";
}
- if (this.keepWhite) {
- var last = tokens.pop();
+ if (this.keepWhite) {
+ var last = tokens ? tokens.pop() : false;
if (last && last.name != "WHIT") {
tokens.push(last);
}