Class BNFProduction


public class BNFProduction extends NormalProduction
Describes BNF productions.
  • Field Details

    • declaration_tokens

      private final List<Token> declaration_tokens
      The declarations of this production.
    • jumpPatched

      private boolean jumpPatched
      This flag keeps track of whether or not return and throw statements have been patched within this production's actions to include a preceding "if (true)".
  • Constructor Details

    • BNFProduction

      public BNFProduction()
  • Method Details

    • getDeclarationTokens

      public final List<Token> getDeclarationTokens()
      Returns:
      the declaration_tokens
    • isJumpPatched

      public final boolean isJumpPatched()
      Returns:
      the jumpPatched
    • setJumpPatched

      public final void setJumpPatched(boolean jumpPatched)
      Parameters:
      jumpPatched - the jumpPatched to set