diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-03 16:26:24 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-03 16:26:29 -0700 |
| commit | 2f68357cb6800e97edd31abfc707d7c7905faa64 (patch) | |
| tree | 8ead999f5e3d9f0c207f73c7f498d813177db519 /nomnom/parser.nom | |
| parent | b615cb5c8e638cffe77bbe5cb86c9362e2b2fc18 (diff) | |
Some incremental progress.
Diffstat (limited to 'nomnom/parser.nom')
| -rw-r--r-- | nomnom/parser.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nomnom/parser.nom b/nomnom/parser.nom index 0be394c..dfd5253 100644 --- a/nomnom/parser.nom +++ b/nomnom/parser.nom @@ -72,7 +72,7 @@ action [make parser from %peg] (make parser from %peg using (nil)) action [make parser from %peg using %make_tree]: %peg = (lpeg pattern %peg_tidier's match of %peg) %peg = (lpeg re pattern %peg using %defs) - local action [parse %input from %filename]: + local action [%input from %filename parsed]: %input = "\%input" %tree_mt = {__index: {source:%input, filename:%filename}} %userdata = {..} @@ -81,4 +81,4 @@ action [make parser from %peg using %make_tree]: %tree = (lpeg pattern %peg's match of %input with %userdata) assume %tree or barf "File \%filename failed to parse:\n\%input" return %tree - return (action (parse 1 from 2)) + return (action (1 from 2 parsed)) |
