Skip to content

Commit

Permalink
Add AST link to quote-and-unquote guide (#13026)
Browse files Browse the repository at this point in the history
  • Loading branch information
solar05 authored Oct 21, 2023
1 parent d332f26 commit 4b85aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/pages/meta-programming/quote-and-unquote.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ iex> quote do: x
{:x, [], Elixir}
```

When quoting more complex expressions, we can see that the code is represented in such tuples, which are often nested inside each other in a structure resembling a tree. Many languages would call such representations an *Abstract Syntax Tree* (AST). Elixir calls them *quoted expressions*:
When quoting more complex expressions, we can see that the code is represented in such tuples, which are often nested inside each other in a structure resembling a tree. Many languages would call such representations an [*Abstract Syntax Tree*](https://en.wikipedia.org/wiki/Abstract_syntax_tree) (AST). Elixir calls them *quoted expressions*:

```elixir
iex> quote do: sum(1, 2 + 3, 4)
Expand Down

0 comments on commit 4b85aa2

Please sign in to comment.