Skip to content

Commit

Permalink
Correct path grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Jan 6, 2025
1 parent 7382953 commit 549dcdc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/content/manual/dev/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1095,10 +1095,8 @@ Therefore, we define it via a formal grammar in
~~~ ebnf
field = ident | string;
path = atomic, part
init = atomic, part
| ".", field
| path, part
| path, part, "?"
;
part = ".", field
Expand All @@ -1108,6 +1106,10 @@ part = ".", field
| "[", t, ":", "]"
| "[", ":", t, "]"
;
(* `[ t ]` stands for an optional occurrence of `t` and
`{ t }` stands for arbitrarily many occurrences of `t` *)
path = init, [ "?" ], { part, [ "?" ] };
~~~

Here,
Expand Down

0 comments on commit 549dcdc

Please sign in to comment.