Grammar: fix commas in lists

commas were (unintentionally) optional in lists. so a list like (a b c)
was a valid three-element list.
This commit is contained in:
Henri DF 2016-02-28 14:24:54 -08:00
parent b46e996ea1
commit 733548b80b

View File

@ -99,7 +99,7 @@ end
local function list (pat, sep) local function list (pat, sep)
return Ct(pat^0 * (sep * pat^0)^0) / function(elements) return {type = "List", elements=elements} end return Ct(pat^-1 * (sep * pat^0)^0) / function(elements) return {type = "List", elements=elements} end
end end
--http://lua-users.org/wiki/StringTrim --http://lua-users.org/wiki/StringTrim