From 72d699fe86ddb34473b54a0df27d21b4a9159284 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 5 Feb 2019 15:45:27 -0800 Subject: Bunch of changes: - Added shebangs to generated code output - SyntaxTree:map() -> SyntaxTree:with(), and corresponding changes to metaprogramming API - Added (return Lua 1) shorthand for (return (Lua 1)) - (1 and 2 and 3) compile rule mapping to -> (1 and (*extra arguments*)) - Don't scan for errors, just report them when compiling - Syntax changes: - Added prefix actions (e.g. #$foo) - Operator chars now include utf8 chars - Ditch "escaped nomsu" type (use (\ 1) compile action instead) --- lib/tools/replace.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tools/replace.nom') diff --git a/lib/tools/replace.nom b/lib/tools/replace.nom index 7337447..314834e 100755 --- a/lib/tools/replace.nom +++ b/lib/tools/replace.nom @@ -107,7 +107,7 @@ command line program with $args: $matched = {} $user_answers = {} ($tree with replacements) means - $tree, map + $tree, with for $t: $values = ($t matches $pattern_tree with {}) if $values: -- cgit v1.2.3