about summary refs log tree commit diff stats
path: root/shell/global.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-06 17:29:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-06 17:29:51 -0700
commit1648a04cc0e92c0583c9d283ed6b6108120f820f (patch)
tree63f6145a8023be046bb30e29599ad80dddabe6f0 /shell/global.mu
parente9981404da5fcaf24acc6b298f4752a543d8af9f (diff)
downloadmu-1648a04cc0e92c0583c9d283ed6b6108120f820f.tar.gz
literal macros
Current plan:
- some way to define macros. For now:
    (def f (litmac litfn () (a b) `(+ ,a , b)))
- macroexpand will expand calls by passing them through the cdr
    (f 3 4)
    macroexpand: ((litfn () (a b) `(+ ,a ,b)) 3 4)
      => (+ 3 4)
    eval: (+ 3 4) => 7
Diffstat (limited to 'shell/global.mu')
0 files changed, 0 insertions, 0 deletions