diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:48:23 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:48:40 -0800 |
| commit | a2f07415c5284bf94c146cea6eed4a15f171b9ab (patch) | |
| tree | 925ab30d70cac56c24e007f7daa0b89b9f371f3c /lib | |
| parent | 7d2b7199d87930096b7fd799709fe0105d51eccb (diff) | |
Deprecating (% as lua statements) and (% as lua return)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/object.nom | 2 | ||||
| -rw-r--r-- | lib/os.nom | 4 | ||||
| -rw-r--r-- | lib/things.nom | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/object.nom b/lib/object.nom index 101499d..2af5412 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -101,7 +101,7 @@ test: class.__tostring = function(inst) return inst.name..getmetatable(_Dict{}).__tostring(inst) end - \(%class_body as lua statements) + \(%class_body as lua) for stub,metamethod in pairs(globals.METAMETHOD_MAP) do class[metamethod] = class[stub:as_lua_id()] end @@ -23,7 +23,7 @@ test: for file %f in "core": do nothing (for file %f in %path %body) compiles to "\ ..for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do - \(%body as lua statements) + \(%body as lua) \(what (===next %f ===) compiles to) end \(what (===stop %f ===) compiles to)" @@ -32,7 +32,7 @@ test: ..(function() local ret = List{} for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do - ret[#ret+1] = \(%expr as lua statements) + ret[#ret+1] = \(%expr as lua) end return ret end)()" diff --git a/lib/things.nom b/lib/things.nom index f11ca23..4f15e68 100644 --- a/lib/things.nom +++ b/lib/things.nom @@ -124,7 +124,7 @@ test: class.__tostring = function(inst) return inst.name..dict_tostring(inst) end - \(%class_body as lua statements) + \(%class_body as lua) for stub,metamethod in pairs(globals.METAMETHOD_MAP) do class[metamethod] = class[stub:as_lua_id()] end |
