*/
/** @cfg {Boolean} collapseWhite merge multiple whitespace/comments into a single token **/
- public bool collapseWhite = false, // only reduces white space...
+ public bool collapseWhite = false; // only reduces white space...
/** @cfg {Boolean} keepDocs keep JSDOC comments **/
- public bool keepDocs = true,
+ public bool keepDocs = true;
/** @cfg {Boolean} keepWhite keep White space **/
- public bool keepWhite = false,
+ public bool keepWhite = false;
/** @cfg {Boolean} keepComments keep all comments **/
- public bool keepComments = false,
+ public bool keepComments = false;
/** @cfg {Boolean} sepIdents seperate identifiers (eg. a.b.c into ['a', '.', 'b', '.', 'c'] ) **/
- public bool sepIdents = false,
+ public bool sepIdents = false;
/** @cfg {String} filename name of file being parsed. **/
public string filename = "";
/** @config {Boolean} ignoreBadGrammer do not throw errors if we find stuff that might break compression **/
- public bool ignoreBadGrammer = false,
+ public bool ignoreBadGrammer = false;
int line = 0;
//Seed.print('(@' + n);
var lt = this.lastSym(tokens, n);
-
+ /*
//print(JSON.stringify(lt));
if (lt.type != "KEYW" || ["IF", 'WHILE'].indexOf(lt.name) < -1) {
if (!this.ignoreBadGrammer) {
}
}
-
+ */
}
}
- if (found === "") {
+ if (found == "") {
return false;
}
found += stream.next();
}
- if (found === "") {
+ if (found == "") {
return false;
}
//print("WHITE = " + JSON.stringify(found));
@returns {Boolean} Was the token found?
*/
public bool read_newline (TokenStream stream, TokenArray tokens)
+ {
var found = "";
var line = this.line;
while (!stream.lookEOF() && Lang.isNewline(stream.look())) {
found += stream.next();
}
- if (found === "") {
+ if (found == "") {
return false;
}