Interface Cfg.Symbol<T>

Type Parameters:
T - the terminal symbol value type
All Known Implementing Classes:
Cfg.NonTerminal, Cfg.Terminal
Enclosing class:
Cfg<T>

public static sealed interface Cfg.Symbol<T> permits Cfg.Terminal<T>, Cfg.NonTerminal<T>
Represents the symbols the BNF grammar consists.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the name of the symbol.
  • Method Details

    • name

      Return the name of the symbol.
      Returns:
      the name of the symbol