diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-28 15:34:45 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-28 15:34:45 -0700 |
| commit | 5ee9bcb7fb692b7dcbdcd71b38f4166f1ae56d3c (patch) | |
| tree | 4ced4ea6ec8898097b62088d8d3d7f8c45e00717 /core/metaprogramming.nom | |
| parent | 2ec4f3117e4582ddb436ae4decb3d55ed2f06460 (diff) | |
Upgraded version to 3.5.5.6, corresponding to Object Oriented changes.
Diffstat (limited to 'core/metaprogramming.nom')
| -rw-r--r-- | core/metaprogramming.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 097719c..a8e2f7c 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V2.5.5.5 +#!/usr/bin/env nomsu -V3.5.5.6 # This File contains actions for making actions and compile-time actions and some helper functions to make that easier. @@ -334,8 +334,8 @@ compile [type of %obj] to (Lua value "type(\(%obj as lua expr))") test: assume ((parse "foo %") == \(foo \%)) %a = (parse "\\1") - %b = \\1 - assume ((parse "\\1") == \\1) + %b = \(\(1)) + assume ((parse "\\1") == \(\(1))) compile [parse %text] to (Lua value "nomsu:parse(\(%text as lua expr))") compile [parse %text from %filename] to (..) Lua value ".." @@ -356,7 +356,7 @@ compile [run %nomsu_code] to (..) ..) test: - assume ((\(\5 + \5) as value) == 10) or barf "%tree as value failed." + assume ((\(\(5) + \(5)) as value) == 10) or barf "%tree as value failed." action [run tree %tree, %tree as value] (lua> "return nomsu:run(\%tree)") compile [compile %block, compiled %block, %block compiled] to (..) Lua value "nomsu:compile(\(%block as lua))" |
