Enum Class Feature

java.lang.Object
java.lang.Enum<Feature>
foundry.veil.lib.anarres.cpp.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>, Constable

public enum Feature extends Enum<Feature>
Features of the Preprocessor, which may be enabled or disabled.
  • Enum Constant Details

    • DIGRAPHS

      public static final Feature DIGRAPHS
      Supports ANSI digraphs.
    • TRIGRAPHS

      public static final Feature TRIGRAPHS
      Supports ANSI trigraphs.
    • LINEMARKERS

      public static final Feature LINEMARKERS
      Outputs linemarker tokens.
    • CSYNTAX

      public static final Feature CSYNTAX
      Reports tokens of type INVALID as errors.
    • KEEPCOMMENTS

      public static final Feature KEEPCOMMENTS
      Preserves comments in the lexed output. Like cpp -C
    • KEEPALLCOMMENTS

      public static final Feature KEEPALLCOMMENTS
      Preserves comments in the lexed output, even when inactive.
    • OBJCSYNTAX

      public static final Feature OBJCSYNTAX
      Supports lexing of objective-C.
    • INCLUDENEXT

      public static final Feature INCLUDENEXT
    • PRAGMA_ONCE

      public static final Feature PRAGMA_ONCE
      Random extensions.
  • Method Details

    • values

      public static Feature[] 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 Feature 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