Skip to content

Commit

Permalink
chore: format examples/macros.ark
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Dec 17, 2024
1 parent 7b210b6 commit 3ad2cf0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions examples/macros.ark
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@
(last 1 5 6 7 8)

{
(print "Testing macros in scopes and macro shadowing")
(print "Testing macros in scopes and macro shadowing")

($ test (+ 1 2 3))
(print "(global) Reading macro 'test', expected 6, " test)
($ test (+ 1 2 3))
(print "(global) Reading macro 'test', expected 6, " test)

((fun () {
($ test (- 1 2 3))
(print "(sub scope) Reading macro 'test', expected -4, " test) }))
((fun () {
($ test (- 1 2 3))
(print "(sub scope) Reading macro 'test', expected -4, " test) }))

(print "(global) Reading macro 'test', expected 6, " test)
(print "(global) Reading macro 'test', expected 6, " test)

{
($ test 555)
(print "(subscope) Reading macro 'test', expected 555, " test)
($ undef test)
(print "(subscope, undef test) Reading macro 'test', expected 6, " test)
($ undef a) } }
{
($ test 555)
(print "(subscope) Reading macro 'test', expected 555, " test)
($ undef test)
(print "(subscope, undef test) Reading macro 'test', expected 6, " test)
($ undef a) } }
(print "Demonstrating a threading macro")

($ -> (arg fn1 ...fn) {
Expand Down

0 comments on commit 3ad2cf0

Please sign in to comment.