Skip to content

Commit

Permalink
Update look peg special docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sogaiu committed Jun 18, 2024
1 parent 5ce08d9 commit af72263
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions content/docs/peg.mdz
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,14 @@ compiled to bytecode).
@tr{@td{@code`(! patt)` }
@td{ Alias for @code`(not patt)` }}

@tr{@td{@code`(look offset patt)` }
@td{ Matches only if patt matches at a fixed offset. offset can be any
integer. patt will not produce captures and the peg will not advance any
characters. }}

@tr{@td{@code`(> offset patt)` }
@td{ Alias for @code`(look offset patt)` }}
@tr{@td{@code`(look offset ?patt)` }
@td{ If patt is provided, matches only if patt matches at a fixed
offset. offset can be any integer. patt will not produce captures and
the peg will not advance any characters. If patt is not provided,
offset will be used as a value for patt. }}

@tr{@td{@code`(> offset ?patt)` }
@td{ Alias for @code`(look offset ?patt)` }}

@tr{@td{@code`(to patt)` }
@td{ Match up to patt (but not including it). If the end of the input
Expand Down

0 comments on commit af72263

Please sign in to comment.