1 //<Script type="text/javascript">
2 JSDOC = imports['JSDOC.js'].JSDOC;
3 Roo = imports['Roo.js'].Roo;
4 console = imports['console.js'].console;
8 Token = function(data, type, name) {
15 //JSDOC.Token.prototype.toString = function() {
16 // return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">";
18 Roo.apply( Token.prototype, {
27 Roo.each(this.items, function(ai) {
30 Roo.each(ai, function(it) {
31 str += it.toRaw(lvl + 1);
40 for (var i in this.props) {
41 ret += this.props[i].key.toRaw(lvl+1) + ' : ';
42 Roo.each(this.props[i].val, function(e) {
51 return this.prefix + ret;
59 eval( "_tmp = " + this.data);
62 return "ERROR unparsable" + this.data;
69 return this.name === what || this.type === what;