Parser.parse method
Parser › parse
Unofficial
Parse a document.Signature:
parse(input: string | Input, fragments?: readonly LezerTreeFragment[] | undefined, ranges?: readonly LezerTreeRange[] | undefined): LezerTreeParameters:
| Parameter | Type | Description |
|---|---|---|
| input | string | Input | The document input or string. |
| fragments? | readonly LezerTreeFragment[] | undefined | Previously parsed fragments that can be reused. |
| ranges? | readonly LezerTreeRange[] | undefined | The ranges of the document to parse. |
Returns: LezerTree — The parsed tree.