Stream
BuilderStream dataclass
¶
Represents a stream of builder nodes.
eat ¶
Scan the stream until a node of type in types
or skips
is found.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
types | List[Type[Builder]] | List of types to move the stream pointer to | required |
skips | List[Type[Builder]] | None | List of types to end the | None |
Returns:
Name | Type | Description |
---|---|---|
BuilderNode | BuilderNode | The beginning of the stream which matches a type in |