From 2bbc035f5dcc3ecd62724b9d1de0e7e3ea902379 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 20 Nov 2018 14:52:59 -0800 Subject: Simplifying the filesystem code (no longer entangled with nomsupath) and using that to simplify the tools. Now the tools directly take lists of file paths rather than things that might go through nomsupath or directories or get processed by filetype. Use your shell for globbing stuff like `nomsu tools/test.nom core/*.nom` --- core/metaprogramming.nom | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'core') diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index c89b1df..67219ac 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -338,21 +338,6 @@ externally (match %tree with %patt) means: end return matches" -externally (%tree with %patt ~> %replacement) means: - lua> "\ - ..return \%tree:map(function(\%t) - local \%vars = \(match %t with %patt) - if not \%vars then return nil end - for \%k,\%v in pairs(\%vars) do - \%vars[\%k] = \(%v with %patt ~> %replacement) - end - return \%replacement:map(function(\%t) - if \%t.type == "Var" then - return \%vars[\%t[1]] - end - end) - end)" - test: assume ((quote "one\n\"two\"") == "\"one\\n\\\"two\\\"\"") -- cgit v1.2.3