class Pegmatite::Pattern::Optional
- Pegmatite::Pattern::Optional
- Pegmatite::Pattern
- Reference
- Object
Overview
Pattern::Optional specifies that a pattern that can either match or not.
If the child pattern doesn't match, zero bytes are consumed. Otherwise, the result of the child pattern is returned directly. This pattern will never fail.