mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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); }
|
||||
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 "?"; };
|
||||
|
||||
Reference in New Issue
Block a user