Pattern Element
interface PatternElement
Represents a syntactic element in a production pattern.
A PatternElement defines how to match a portion of the input token stream and capture the matched tokens or nodes. Pattern elements can match individual tokens (TokenElement), reference other rules (ReferenceElement), combine multiple elements (SequenceElement, AlternationElement), or repeat elements (RepeatableElement).