Constructor
new Parser(scanner:)
Create a parser.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
scanner: |
Object
|
scanner instance providing next() tokens |
Methods
parse() → {ast.AST}
Parse the full token stream into an AST root.
- Source:
Returns:
- Type:
-
ast.AST
parsed AST root and globals