Class BNFProduction


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

      • declaration_tokens

        private final java.util.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 Detail

      • BNFProduction

        public BNFProduction()
    • Method Detail

      • getDeclarationTokens

        public final java.util.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