class Pegmatite::Pattern::Forward
- Pegmatite::Pattern::Forward
- Pegmatite::Pattern
- Reference
- Object
Overview
Pattern::Forward is used to create a forward declaration, such as when defining a pattern that will be used recursively with another.
There is no child pattern present at declaration, so one must be added later by calling define exactly once before the pattern is used to parse.
Returns the result of the child pattern's parsing.
Defined in:
pegmatite/pattern/forward.crConstructors
Instance Method Summary
- #_match(source, offset, state) : MatchResult
- #define(child : Pegmatite::Pattern | Nil)
- #description
- #dsl_name
- #inspect(io)