Enum Class Parser.Pragma

java.lang.Object
java.lang.Enum<Parser.Pragma>
eu.bandm.tools.ramus.runtime2.Parser.Pragma
All Implemented Interfaces:
Serializable, Comparable<Parser.Pragma>, java.lang.constant.Constable
Enclosing class:
Parser<D,T>

public static enum Parser.Pragma extends Enum<Parser.Pragma>
Enumeration of local pragmatic modifiers of parsing behavior.
  • Enum Constant Details

    • Greedy

      public static final Parser.Pragma Greedy
      Force shift-reduce conflicts to be resolved deterministically to shift.
    • Productive

      public static final Parser.Pragma Productive
      Disallow the optional modification of epsilon syntax.
    • Disjoint

      public static final Parser.Pragma Disjoint
      Disallow choices that are not determined by the next token type.
  • Method Details

    • values

      public static Parser.Pragma[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Parser.Pragma valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null