Class ParserOptions

java.lang.Object
io.github.protasm.jvmud.compiler.parser.ParserOptions

public final class ParserOptions extends Object
Immutable, explicitly selectable optional LPC syntax features.
  • Method Details

    • defaults

      public static ParserOptions defaults()
      Returns the complete compiler-development profile.

      Hosted mudlibs do not use this implicit profile; boot replaces it with the features declared by the selected mudlib manifest.

    • features

      public static ParserOptions features(Set<LanguageFeature> features)
      Returns a profile containing only the supplied optional syntax features.
    • supports

      public boolean supports(LanguageFeature feature)
      Returns whether the profile enables an optional syntax family.
    • features

      public Set<LanguageFeature> features()
      Returns the immutable enabled feature set.