ShakeParser

abstract class ShakeParser(source)

An abstract Parser for the Shake Programming language. An instance is created for each file in the compilation process. The Default implementation of this class is ShakeParserImpl. Create a ShakeParser using ShakeParser.from

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The ShakeTokenInputStream to be parsed.

Link copied to clipboard
abstract val map: PositionMap

The PositionMap of the input. A position map is a mapping of the index of characters in the input and its corresponding Position in the file (line, column, etc.).

Functions

Link copied to clipboard

Parses a single value.

Link copied to clipboard
abstract fun parse(): ShakeFileNode

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

Link copied to clipboard

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