Skip to content

Commit

Permalink
Merge pull request #202 from CosmicToast/patch-1
Browse files Browse the repository at this point in the history
document true and false PEG primitives
  • Loading branch information
bakpakin committed Apr 15, 2024
2 parents 2b3f76c + 5ce0699 commit 7494644
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/docs/peg.mdz
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ languages.
@tr{@td{@code`(set "abcd")`}
@td{ Match any character in the argument string. Advances 1 character.
}}

@tr{@td{@code`true`}
@td{ Always matches. Does not advance any characters. Epsilon in NFA.
}}

@tr{@td{@code`false`}
@td{ Never matches. Does not advance any characters. Equivalent to
@code`(! true)`.
}}
}

Primitive patterns are not that useful by themselves, but can be passed to
Expand Down

0 comments on commit 7494644

Please sign in to comment.