name = "function argument(s)",
{ "{", table_content, "}" },
{ "(", func_args_content, ")", builder = fget(1) },
- default = function(lx) local r = opt_string(lx); return r and {r} or { } end }
+ { "+{", quote_content, "}" },
+ function(lx) local r = opt_string(lx); return r and {r} or { } end }
--------------------------------------------------------------------------------
-- [func_val] parses a function, from opening parameters parenthese to
-- definitions.
--------------------------------------------------------------------------------
func_params_content = gg.list{ name="function parameters",
- gg.multisequence{ { "...", builder = "Dots" }, default = id },
+ gg.multisequence{ { "...", builder = "Dots" }, id },
separators = ",", terminators = {")", "|"} }
local _func_params_content = function (lx) return func_params_content(lx) end
{ "false", builder = "False" },
{ "...", builder = "Dots" },
table,
- default = id_or_literal },
+ id_or_literal },
infix = { name="expr infix op",
{ "+", prec = 60, builder = opf2 "add" },