From 9b48fcc975659e390fea3c6dabc088155c855b89 Mon Sep 17 00:00:00 2001 From: pedrobslisboa Date: Wed, 11 Sep 2024 16:11:27 +0100 Subject: [PATCH] feat: add spaces between callouts --- examples/1 - AST/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/1 - AST/README.md b/examples/1 - AST/README.md index d58f21c..4b507d1 100644 --- a/examples/1 - AST/README.md +++ b/examples/1 - AST/README.md @@ -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"]` - +
> 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). @@ -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]` - +
> 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).