From a387fd86a870bd1a34f206ec89c32d9d5c4d1c77 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 31 Jan 2018 15:31:06 -0800 Subject: Added colons for aesthetics. --- lib/object.nom | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/object.nom') diff --git a/lib/object.nom b/lib/object.nom index f3fcd86..4d8932a 100644 --- a/lib/object.nom +++ b/lib/object.nom @@ -1,6 +1,6 @@ use "lib/core.nom" -compile [@%var] to +compile [@%var] to: lua> ".." local key_lua = repr(\%var.value); local key_attr = (key_lua:match("'([a-zA-Z][a-zA-Z0-9]*)'") @@ -12,7 +12,7 @@ compile [@%var] to end return {expr="_me["..key_lua.."]"}; -compile [@%var <- %val] to +compile [@%var <- %val] to: lua> ".." local val_lua = \(%val as lua expr); local key_lua = repr(\%var.value); @@ -25,12 +25,12 @@ compile [@%var <- %val] to end return {statements="_me["..key_lua.."] = "..val_lua..";"}; -compile [define object %classname %class_body] to +compile [define object %classname %class_body] to: %class_identifier <- (=lua "nomsu:var_to_lua_identifier(\(%classname as value)):sub(2,-1)") if: %class_identifier is "" %class_identifier <- "class" %methods <- [] - for %line in (%class_body's "value") + for %line in (%class_body's "value"): if: (%line's "type") is "Comment" do next %line assume (((%line's "type") == "FunctionCall") and ((%line's "stub") == "action % %")) -- cgit v1.2.3