Package antlr

Class ParserGrammar


  • class ParserGrammar
    extends Grammar
    Parser-specific grammar subclass
    • Constructor Detail

      • ParserGrammar

        ParserGrammar​(String className_,
                      Tool tool_,
                      String superClass)
    • Method Detail

      • processArguments

        public void processArguments​(String[] args)
        Process command line arguments. -trace have all rules call traceIn/traceOut -traceParser have parser rules call traceIn/traceOut -debug generate debugging output for parser debugger
        Specified by:
        processArguments in class Grammar
      • setOption

        public boolean setOption​(String key,
                                 Token value)
        Set parser options -- performs action on the following options:
        Overrides:
        setOption in class Grammar
        Parameters:
        key - The name of the option.
        value - The value to associate with the key.
        Returns:
        true if the option was a valid generic grammar option, false o/w