Skip to content

Commit

Permalink
Merge pull request #3 from Khady/patch-3
Browse files Browse the repository at this point in the history
context free: typo
  • Loading branch information
pedrobslisboa authored Sep 3, 2024
2 parents c07462b + c0dc100 commit 29c5ac1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/2 - Writing PPXs/a - Context Free/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,14 @@ let from_string = function
ptype_kind = Ptype_variant variants;
_;
};
] )
-> (* ... *)
] ) -> (* ... *)
| _ -> (* ... *)
```
- **Create functions to generate the patterns:**
All we are going to do here is what we covered in [Building AST](../../1%20-%20AST/a%20-%20Building%20AST/README.md). So it shouldn't be a problem to understand this part.
- Creating the `to_string` function:
- **Creating the `to_string` function:**
```ocaml
let function_name suffix = type_name ^ suffix in
Expand Down

0 comments on commit 29c5ac1

Please sign in to comment.