AstParser

Represents a parser for an Abstract Syntax Tree (AST).

Parameters

TTokenKind

The type of token kinds used in the parser.

TAstNode

The type of AST nodes produced by the parser.

Functions

Link copied to clipboard
abstract fun parse(tokens: List<Token<out TTokenKind>>): TAstNode

Parses a list of tokens into an AST node.