From eda80cf575caaf008d0f9e8d80fe70e9f5ff8f83 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 7 Jan 2019 21:40:47 -0800 Subject: [PATCH] Renamed "source" to "file" to avoid confusion. --- parser.lua | 2 +- parser.moon | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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