diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-31 01:02:46 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-31 01:02:46 -0800 |
| commit | d8f9b15fd9da8c9ae29ee0b63c4302e5efbde387 (patch) | |
| tree | 418278e778d5bdfcd884e31be612c04c05c2a3dd /core/metaprogramming.nom | |
| parent | 0f83a81fa6d2c131aea747da035a53019f3d7d2a (diff) | |
Cleaning up some of the documentation and dead code.
Diffstat (limited to 'core/metaprogramming.nom')
| -rw-r--r-- | core/metaprogramming.nom | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index a9eabd0..2e1bf6b 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -210,11 +210,11 @@ test: [$1, $2] = [1, 2] swap $1 and $2 assume (($1 == 2) and ($2 == 1)) or barf - "'parse % as %' failed on 'swap % and %'" + "'parse $ as $' failed on 'swap $ and $'" [$tmp, $tmp2] = [1, 2] swap $tmp and $tmp2 assume (($tmp == 2) and ($tmp2 == 1)) or barf - "'parse % as %' variable mangling failed." + "'parse $ as $' variable mangling failed." ($actions all parse as $body) compiles to: lua> (" @@ -266,7 +266,6 @@ test: [$action parses as $body] all parse as ([$action] all parse as $body) -#(%tree as lua expr) compiles to "compile(\(=lua "compile(\%tree, true)"), true)" externally ($tree as lua expr) means: lua> (" local tree_lua = compile(\$tree) |
