A helper interface we use to "mark" leaf nodes.

Please be aware, that this is not marking from a language perspective, as it is equivalent to the Base interface. It is intended to help humans understand the code.

interface Leaf<Info, LexemeType> {
    info: Info & Source;
    lexeme: LexemeType;
    type: RType;
}

Type Parameters

  • Info = NoInfo
  • LexemeType = string

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of Leaf

Properties

Properties

info: Info & Source

allows to attach additional information to the node

lexeme: LexemeType

the original string retrieved from R, can be used for further identification

type: RType