Skip to content

Commit

Permalink
feat: add spaces between callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobslisboa committed Sep 11, 2024
1 parent 0667941 commit 9b48fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/1 - AST/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ As the AST represents the structure of the source code in a tree-like format, it

- **For “algebraic” categories**: `[%name "John Doe"]`
- **For structures and signatures**: `[%%name "John Doe"]`

<br>
> In the code `let name = [%name "John Doe"]`, `[%name "John Doe"]` is the extension node, where **name** is the extension name (`string Ast_414.Asttypes.loc`) and **"John Doe"** is the `payload`. For the entire item `let name = "John Doe"`, you must use `%%`: `[%%name "John Doe]`.
Don't worry much about creating a new extension node; we'll cover it in the [Wrinting PPXs section](../2%20-%20Writing%20PPXs/README.md).
Expand All @@ -294,7 +294,7 @@ As the AST represents the structure of the source code in a tree-like format, it
- **Attached to on “algebraic” categories**: `[@name]`
- **Attached to “blocks”**: `[@@name]`
- **Stand-alone of signatures or structures modules**: `[@@@name]`

<br>
> In the code `let name = "John Doe" [@print expr]`, `[@print expr]` is the attribute of the `"John Doe"` node, where **print** is the attribute name (`string Ast_414.Asttypes.loc`) and **expr** is the `payload`. To be an attribute of the entire item `let name = "John Doe"`, you must use `@@`: `[@@print]`. If it is an stand-alone attribute of a module, you must use `@@@`: `[@@@print]`.
Don't worry much about creating a new attributes node; we'll cover it in the [Wrinting PPXs section](../2%20-%20Writing%20PPXs/README.md).
Expand Down

0 comments on commit 9b48fcc

Please sign in to comment.