Fixed Suffix-table bugs in gflib.js.

This commit is contained in:
bringert
2006-12-15 19:31:24 +00:00
parent 3cf9e25225
commit 9e559bb7d5

View File

@@ -84,16 +84,13 @@ Seq.prototype.print = function() { return join_print(this.values, " "); };
function Variants() { this.values = copy_arguments(arguments, 0); }
Variants.prototype.print = function() { return /*join_print(this.values, "/");*/ this.values[0].print(); };
function Glue() { this.values = copy_arguments(arguments, 0); }
Glue.prototype.print = function() { return join_print(this.values, ""); };
function Rp(index,value) { this.index = index; this.value = value; }
Rp.prototype.print = function() { return this.index; };
Rp.prototype.toIndex = function() { return this.index.toIndex(); };
function Suffix(prefix,suffix) { this.prefix = prefix; this.suffix = suffix; };
Suffix.prototype.print = function() { return this.prefix.print() + this.suffix.print(); };
Suffix.prototype.sel = function(i) { new Glue(this.prefix, this.suffix.sel(i)); };
Suffix.prototype.print = function() { return this.prefix + this.suffix.print(); };
Suffix.prototype.sel = function(i) { return new Suffix(this.prefix, this.suffix.sel(i)); };
function Meta() { }
Meta.prototype.print = function() { return "?"; };