Provides the common base of all RNodes.

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

Type Parameters

  • Info

    can be used to store additional information about the node

  • LexemeType = string

    the type of the lexeme, probably always a string or string | undefined

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of Base

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