From 3ce7166ca1a4b3096c83794d48327019102d0a7e Mon Sep 17 00:00:00 2001 From: Drahflow Date: Wed, 30 Nov 2016 00:33:32 +0100 Subject: Unclean macro example --- examples/working-compiler/unclean-macro.test | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/working-compiler/unclean-macro.test (limited to 'examples') diff --git a/examples/working-compiler/unclean-macro.test b/examples/working-compiler/unclean-macro.test new file mode 100644 index 0000000..9adf990 --- /dev/null +++ b/examples/working-compiler/unclean-macro.test @@ -0,0 +1,26 @@ +{ ==text =*handler + text "(.)=(.*)" regex -- < == > handler +} /mappingParser deffst + +{ ==scope ==code ==text + { ==var + { var -01 . } + < "$" deffst { * }' scope >' -- + code -01 * + } text mappingParser +} /scopeSplicer deffst + +sys .|executeIdentifier "✨" deffd +{ "}\"" | * ✨scope ✨scopeSplicer }" "}✨" defq + +{ /before ==v + "C=Hello World" { + v dump + $C dump + /after =v + /result + }✨ dump + v dump +} * + +# vim: syn=elymas -- cgit v1.2.3