AglGrammarSyntaxAnalyser

class AglGrammarSyntaxAnalyser(grammarRegistry: GrammarRegistry) : SyntaxAnalyserAbstract

Functions

ambiguousChoice
Link copied to clipboard
common
fun ambiguousChoice(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): RuleItem
choice
Link copied to clipboard
common
fun choice(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): RuleItem
clear
Link copied to clipboard
common
open override fun clear()
reset the sppt2ast, clearing any cached values
concatenation
Link copied to clipboard
common
fun concatenation(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Concatenation
concatenationItem
Link copied to clipboard
common
fun concatenationItem(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): ConcatenationItem
definitions
Link copied to clipboard
common
fun definitions(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): List<Grammar>
extends
Link copied to clipboard
common
fun extends(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): List<Grammar>
grammar
Link copied to clipboard
common
fun grammar(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Grammar
grammarDefinition
Link copied to clipboard
common
fun grammarDefinition(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): List<Grammar>
group
Link copied to clipboard
common
fun group(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Group
multi
Link copied to clipboard
common
fun multi(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Multi
multiplicity
Link copied to clipboard
common
fun multiplicity(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Pair<Int, Int>
namespace
Link copied to clipboard
common
fun namespace(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Namespace
nonTerminal
Link copied to clipboard
common
fun nonTerminal(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): NonTerminal
priorityChoice
Link copied to clipboard
common
fun priorityChoice(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): RuleItem
qualifiedName
Link copied to clipboard
common
fun qualifiedName(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): String
rule
Link copied to clipboard
common
fun rule(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Rule
rules
Link copied to clipboard
common
fun rules(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): List<Rule>
ruleTypeLabels
Link copied to clipboard
common
fun ruleTypeLabels(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): List<String>
separatedList
Link copied to clipboard
common
fun separatedList(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): SeparatedList
simpleChoice
Link copied to clipboard
common
fun simpleChoice(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): RuleItem
simpleItem
Link copied to clipboard
common
fun simpleItem(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): SimpleItem
terminal
Link copied to clipboard
common
fun terminal(target: SPPTBranch, children: List<SPPTBranch>, arg: Any?): Terminal
transform
Link copied to clipboard
common
open override fun <T> transform(sppt: SharedPackedParseTree): T
map the tree into an instance of the targetType
visit
Link copied to clipboard
common
open override fun visit(target: SPPTBranch, arg: Any?): Any
open override fun visit(target: SPPTLeaf, arg: Any?): Any
open override fun visit(target: SharedPackedParseTree, arg: Any?): Any
open fun visit(target: SPPTNode, arg: Any?): Any

Properties

grammarLoader
Link copied to clipboard
common
var grammarLoader: GrammarLoader? = null
grammarRegistry
Link copied to clipboard
common
val grammarRegistry: GrammarRegistry
locationMap
Link copied to clipboard
common
open override val locationMap: MutableMap<Any, InputLocation>