Interface DerivationTree

All Known Implementing Classes:
DerivationTree.RuleNode, DerivationTree.TerminalNode

public sealed interface DerivationTree permits DerivationTree.RuleNode, DerivationTree.TerminalNode
Immutable derivation tree (AST) built from grammar productions.
  • Method Details

    • depth

      int depth()
      Node depth where root is zero.
    • outputType

      ValueType outputType()
      Output type of this expression node.
    • children

      List<DerivationTree> children()
      Child nodes.
    • isTerminal

      default boolean isTerminal()
      Node representation kind.