Interface Grammar.Symbol

All Known Implementing Classes:
Grammar.Call, Grammar.Chars, Grammar.Insertion, Grammar.Not
Enclosing class:
Grammar

public static sealed interface Grammar.Symbol permits Grammar.Call, Grammar.Chars, Grammar.Insertion, Grammar.Not
A symbol in a production.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns true if the symbol matches nothing: the parser steps over it.
  • Method Details

    • isZeroWidth

      default boolean isZeroWidth()
      Returns true if the symbol matches nothing: the parser steps over it.
      Returns:
      true for Insertion and Not