Skip to content

Commit

Permalink
Update 2024-06-21-json-parser-ocaml.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lwcarani authored Jun 22, 2024
1 parent 2a7cf7c commit 5b48932
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _posts/2024-06-21-json-parser-ocaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ name:
;
```

The first rule, named `prog` has two productions. It says that `prog` is a valid `value`, or an `EOF` token. If `EOF`, we return `None` `option`. `v=value` says to match a `value` and bind the resulting value to `v`. The action simply says to return that value `v` wrapped in an `option`.

The first rule, named `prog` (short for "program") has two production rules:

- `EOF { None }`
Expand Down

0 comments on commit 5b48932

Please sign in to comment.