diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-09-26 14:00:05 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-09-26 14:00:05 -0700 |
| commit | 3f31b09e7404e1ea374bbeb230bf34664b641efb (patch) | |
| tree | b619f129e263de2e2a8a5a4866188fcb779031e6 /nomnom/code_obj.nom | |
| parent | 17dfd248640caae5eecc13be8974378c39953f39 (diff) | |
Updated to the point of actually compiling.
Diffstat (limited to 'nomnom/code_obj.nom')
| -rw-r--r-- | nomnom/code_obj.nom | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nomnom/code_obj.nom b/nomnom/code_obj.nom index 057748f..cc7bc04 100644 --- a/nomnom/code_obj.nom +++ b/nomnom/code_obj.nom @@ -163,20 +163,23 @@ object (Lua Code) extends (Code): %statements::add %suffix return %statements - action [Lua Code from %source {%bits:[]}]: + action [Lua Code from %source %bits]: if (%bits is text): %bits = [%bits] if (%source is a "Syntax Tree"): %source = %source.source return (..) Lua Code {source:%source, bits:%bits, is_value:(no), free_vars:[]} - action [Lua Value from %tree {%bits:[]}]: + action [Lua Code from %source] (Lua Code from %source []) + action [Lua Value from %tree %bits]: if (%bits is text): %bits = [%bits] if (%source is a "Syntax Tree"): %source = %source.source return (..) Lua Code {source:%source, bits:%bits, is_value:(yes), free_vars:[]} + action [Lua Value from %tree] (Lua Value from %tree []) object (Nomsu Code) extends (Code): - action [Nomsu Code from %source {%bits:[]}]: + action [Nomsu Code from %source %bits]: if (%bits is text): %bits = [%bits] if (%source is a "Syntax Tree"): %source = %source.source return (..) Nomsu Code {source:%source, bits:%bits} + action [Nomsu Code from %source] (Nomsu Code from %source []) |
