diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-09 19:51:55 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-09 19:51:55 -0700 |
| commit | 88add732c7f7607d8bad739a1a4560c9c8af87cb (patch) | |
| tree | 0e2696fc0e69c229d200b57819e4a0e9a327e9e6 | |
| parent | 7f4638ab5f22d63fa1b70d984fc9407b34724733 (diff) | |
Added type function.
| -rw-r--r-- | lib/metaprogramming.nom | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/metaprogramming.nom b/lib/metaprogramming.nom index a2cf4bf..408726c 100644 --- a/lib/metaprogramming.nom +++ b/lib/metaprogramming.nom @@ -53,6 +53,8 @@ rule [%tree as value] =: lua expr "nomsu:tree_to_value(\(%tree), vars)" compile [repr %obj] to: "nomsu:repr(\(%obj as lua))" +compile [type %obj] to: + "type(\(%obj as lua))" parse [lua block %block] as: lua code ".." |do; |
