mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
waypoint -- jison has a reverse order of operations from yacc
This commit is contained in:
parent
7c01bba4f4
commit
13c49ad865
5 changed files with 9 additions and 9 deletions
|
@ -188,15 +188,15 @@
|
|||
// toString representation of the node, for inspecting the parse tree.
|
||||
Node.prototype.toString = function toString(idt) {
|
||||
var __a, __b, __c, child;
|
||||
idt = idt || '';
|
||||
return (this.type || 'anon') + "\n" + ((function() {
|
||||
idt = (idt || '') + TAB;
|
||||
return this.type + "\n" + ((function() {
|
||||
__a = []; __b = this.children;
|
||||
for (__c = 0; __c < __b.length; __c++) {
|
||||
child = __b[__c];
|
||||
__a.push(idt + TAB + child.toString(idt + TAB));
|
||||
__a.push(idt + child.toString(idt));
|
||||
}
|
||||
return __a;
|
||||
}).call(this));
|
||||
}).call(this)).join('');
|
||||
};
|
||||
// Default implementations of the common node methods.
|
||||
Node.prototype.unwrap = function unwrap() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue