Grammar

interface Grammar

The definition of a Grammar. A grammar defines a list of rules and may be defined to extend a number of other Grammars.

Functions

findAllRule
Link copied to clipboard
abstract fun findAllRule(ruleName: String): Rule
findAllTerminal
Link copied to clipboard
abstract fun findAllTerminal(terminalPattern: String): Terminal

Properties

allNodeType
Link copied to clipboard
abstract val allNodeType: Set<NodeType>
allRule
Link copied to clipboard
abstract val allRule: List<Rule>
the List of rules defined by this grammar and those that this grammar extends the order of the rules is the order they are defined in with the top of the grammar extension hierachy coming first (in extension order where more than one grammar is extended)
allTerminal
Link copied to clipboard
abstract val allTerminal: Set<Terminal>
the Set of all terminals in this grammar and those that this grammar extends
extends
Link copied to clipboard
abstract val extends: List<Grammar>
the List of grammars extended by this one
name
Link copied to clipboard
abstract val name: String
the name of this grammar
namespace
Link copied to clipboard
abstract val namespace: Namespace
the namespace of this grammar;
rule
Link copied to clipboard
abstract val rule: List<Rule>