mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
JavaScript lib: allow children as arguments to Fun.
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
function Fun(name) {
|
function Fun(name) {
|
||||||
this.name = 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.print = function () { return this.show(0); } ;
|
||||||
Fun.prototype.show = function (prec) {
|
Fun.prototype.show = function (prec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user