Skip to content

Commit

Permalink
doc: document macro-expand and macro-expand1
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Nov 13, 2019
1 parent 5e8b91c commit 5f7a98a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/guide/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ Starts a repl using the syntactic context of a given module, which is first eval
(@expand1 form)
```

These two macros perform macro expansion, pretty print the result, and return the quoted expanded syntax for inspection. The difference lies in the function used to perform the expansion. `@expand` uses core-expand* which expands until the outer form is a core macro. `@expand1` uses core-expand1 which performs a single step expansion.
These two macros perform macro expansion, pretty print the result, and return the expanded syntax for inspection. The difference lies in the function used to perform the expansion. `@expand` uses core-expand* which expands until the outer form is a core macro. `@expand1` uses core-expand1 which performs a single step expansion.


```
(macro-expand quoted-form)
(macro-expand1 quoted-form)
```

Procedural forms of `@expand` and `@expand1`.

## Customizing the Interactive Shell

Expand Down

0 comments on commit 5f7a98a

Please sign in to comment.