mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 23:39:32 -06:00
JavaScript lib: allow children as arguments to Fun.
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
function Fun(name) {
|
||||
this.name = name;
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
this.setChild(i-1, arguments[i]);
|
||||
}
|
||||
}
|
||||
Fun.prototype.print = function () { return this.show(0); } ;
|
||||
Fun.prototype.show = function (prec) {
|
||||
|
||||
Reference in New Issue
Block a user