ShakeParserImpl

The default implementation of the abstract ShakeParser class.

Constructors

Link copied to clipboard
constructor(input: ShakeTokenInputStream)

Types

Link copied to clipboard
inner class ParserError(message: String?, name: String?, details: String?, start: Position?, end: Position?) : CompilerError

Properties

Link copied to clipboard
open override val input: ShakeTokenInputStream

The ShakeTokenInputStream to be parsed.

Link copied to clipboard
open override val map: PositionMap

The PositionMap of the input. It is directly taken from the input, because ShakeTokenInputStream already provides a PositionMap implementation.

Functions

Link copied to clipboard
open override fun expectValue(): ShakeValuedNode

Parses a value (a literal, a variable usage, a method call, calculation, etc.).

Link copied to clipboard
open override fun parse(): ShakeFileNode

Parses the input and returns the root ShakeNode of the parsed tree (A ShakeFileNode)

Link copied to clipboard
open override fun parseAsStatements(): ShakeBlockNode

Starts the parsing process, but directly jumps into the statement parsing phase (statements can normally be found in methods, constructors, etc.).