SyntaxAnalyser

interface SyntaxAnalyser

A Syntax Analyser converts a Parse Tree (in this case a SharedPackedParseTree) into a "Syntax Tree/Model". i.e. it will map the parse tree to some other data structure that abstracts away unwanted concrete syntax information e.g. as whitesapce

Functions

clear
Link copied to clipboard
common
abstract fun clear()
reset the sppt2ast, clearing any cached values
transform
Link copied to clipboard
common
abstract fun <T> transform(sppt: SharedPackedParseTree): T
map the tree into an instance of the targetType

Properties

locationMap
Link copied to clipboard
common
abstract val locationMap: Map<Any, InputLocation>

Inheritors

AglFormatSyntaxAnalyser
Link copied to clipboard
SyntaxAnalyserAbstract
Link copied to clipboard
SyntaxAnalyserSimple
Link copied to clipboard