aboutsummaryrefslogtreecommitdiff
path: root/examples/working-compiler/unclean-macro.test
blob: fcdd72db85be048510d64f61ff3640a66aef813b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ ==text =*handler
  text "(.)=(.*)" regex -- < == > handler
} /mappingParser deffst

{ ==scope ==w ==code ==text
  { ==var
      { var -01 . }
      < "$" deffst { * }' scope >' --
    code -01 *
    /w_is: w cat dump
  } text mappingParser
} /scopeSplicer deffst

sys .|executeIdentifier "✨" deffd
{ "}\"" | * ✨w ✨scope ✨scopeSplicer }" "}✨" defq

{ /v_before ==v /w_before ==w
  "C=Hello World" {
    v dump 
    $C dump
    /v_after =v
    /result
  }✨ dump
  v dump
} *

# vim: syn=elymas