diff --git a/parser.lua b/parser.lua index 09386fa..2ae4aee 100644 --- a/parser.lua +++ b/parser.lua @@ -93,7 +93,7 @@ make_parser = function(peg, make_tree) return setmetatable(t, tree_mt) end), filename = filename, - source = input + file = input } local tree = peg:match(input, nil, userdata) if not tree then diff --git a/parser.moon b/parser.moon index 3f36953..637425b 100644 --- a/parser.moon +++ b/parser.moon @@ -71,7 +71,7 @@ make_parser = (peg, make_tree=nil)-> tree_mt = {__index: {source:input, filename:filename}} userdata = { make_tree: make_tree or ((t)->setmetatable(t, tree_mt)) - :filename, source:input + :filename, file:input } tree = peg\match(input, nil, userdata) if not tree