From bc831cd3df07bbb4c1f3bf508b04bb3c7addfc1d 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, 3 insertions(+), 1 deletion(-) diff --git a/examples/1 - AST/README.md b/examples/1 - AST/README.md index d58f21c..c8d433f 100644 --- a/examples/1 - AST/README.md +++ b/examples/1 - AST/README.md @@ -279,7 +279,8 @@ As the AST represents the structure of the source code in a tree-like format, it There are 2 forms of extension nodes: - **For “algebraic” categories**: `[%name "John Doe"]` - - **For structures and signatures**: `[%%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]`. @@ -295,6 +296,7 @@ As the AST represents the structure of the source code in a tree-like format, it - **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).