682
NodeWithToken.prototype.toString = function() { return this.name; };
682
NodeWithToken.prototype = {
684
return this.name.length;
687
return this.name.length = v;
689
replace: function() { return this.name.replace.apply(this.name, arguments); },
690
concat: function() { return this.name.concat.apply(this.name, arguments); },
691
indexOf: function() { return this.name.indexOf.apply(this.name, arguments); },
692
lastIndexOf: function() { return this.name.lastIndexOf.apply(this.name, arguments); },
693
lastIndexOf: function() { return this.name.lastIndexOf.apply(this.name, arguments); },
694
match: function() { return this.name.match.apply(this.name, arguments); },
695
search: function() { return this.name.search.apply(this.name, arguments); },
696
slice: function() { return this.name.slice.apply(this.name, arguments); },
697
split: function() { return this.name.split.apply(this.name, arguments); },
698
substr: function() { return this.name.substr.apply(this.name, arguments); },
699
substring: function() { return this.name.substring.apply(this.name, arguments); },
700
toString: function() { return this.name; },
701
toJSON: function() { return this.name; },
702
valueOf: function() { return this.name; },
684
705
function parse($TEXT, exigent_mode, embed_tokens) {
768
function add_tokens(str, start, end) {
769
return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end);
772
789
function maybe_embed_tokens(parser) {
773
790
if (embed_tokens) return function() {
774
791
var start = S.token;
775
792
var ast = parser.apply(this, arguments);
776
ast[0] = add_tokens(ast[0], start, prev());
779
797
else return parser;