forked from GitHub/gf-core
Fixed Suffix-table bugs in gflib.js.
This commit is contained in:
@@ -84,16 +84,13 @@ Seq.prototype.print = function() { return join_print(this.values, " "); };
|
|||||||
function Variants() { this.values = copy_arguments(arguments, 0); }
|
function Variants() { this.values = copy_arguments(arguments, 0); }
|
||||||
Variants.prototype.print = function() { return /*join_print(this.values, "/");*/ this.values[0].print(); };
|
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; }
|
function Rp(index,value) { this.index = index; this.value = value; }
|
||||||
Rp.prototype.print = function() { return this.index; };
|
Rp.prototype.print = function() { return this.index; };
|
||||||
Rp.prototype.toIndex = function() { return this.index.toIndex(); };
|
Rp.prototype.toIndex = function() { return this.index.toIndex(); };
|
||||||
|
|
||||||
function Suffix(prefix,suffix) { this.prefix = prefix; this.suffix = suffix; };
|
function Suffix(prefix,suffix) { this.prefix = prefix; this.suffix = suffix; };
|
||||||
Suffix.prototype.print = function() { return this.prefix.print() + this.suffix.print(); };
|
Suffix.prototype.print = function() { return this.prefix + this.suffix.print(); };
|
||||||
Suffix.prototype.sel = function(i) { new Glue(this.prefix, this.suffix.sel(i)); };
|
Suffix.prototype.sel = function(i) { return new Suffix(this.prefix, this.suffix.sel(i)); };
|
||||||
|
|
||||||
function Meta() { }
|
function Meta() { }
|
||||||
Meta.prototype.print = function() { return "?"; };
|
Meta.prototype.print = function() { return "?"; };
|
||||||
|
|||||||
Reference in New Issue
Block a user