Class ECAGrammarParser


  • public class ECAGrammarParser
    extends java_cup.runtime.lr_parser
    • Field Detail

      • _production_table

        protected static final short[][] _production_table
      • _action_table

        protected static final short[][] _action_table
      • _reduce_table

        protected static final short[][] _reduce_table
      • action_obj

        protected org.jboss.byteman.rule.grammar.CUP$ECAGrammarParser$actions action_obj
    • Constructor Detail

      • ECAGrammarParser

        public ECAGrammarParser()
      • ECAGrammarParser

        public ECAGrammarParser​(java_cup.runtime.Scanner s)
      • ECAGrammarParser

        public ECAGrammarParser​(java_cup.runtime.Scanner s,
                                java_cup.runtime.SymbolFactory sf)
    • Method Detail

      • production_table

        public short[][] production_table()
        Specified by:
        production_table in class java_cup.runtime.lr_parser
      • action_table

        public short[][] action_table()
        Specified by:
        action_table in class java_cup.runtime.lr_parser
      • reduce_table

        public short[][] reduce_table()
        Specified by:
        reduce_table in class java_cup.runtime.lr_parser
      • init_actions

        protected void init_actions()
        Specified by:
        init_actions in class java_cup.runtime.lr_parser
      • do_action

        public java_cup.runtime.Symbol do_action​(int act_num,
                                                 java_cup.runtime.lr_parser parser,
                                                 Stack stack,
                                                 int top)
                                          throws Exception
        Specified by:
        do_action in class java_cup.runtime.lr_parser
        Throws:
        Exception
      • start_state

        public int start_state()
        Specified by:
        start_state in class java_cup.runtime.lr_parser
      • start_production

        public int start_production()
        Specified by:
        start_production in class java_cup.runtime.lr_parser
      • EOF_sym

        public int EOF_sym()
        Specified by:
        EOF_sym in class java_cup.runtime.lr_parser
      • error_sym

        public int error_sym()
        Specified by:
        error_sym in class java_cup.runtime.lr_parser
      • scan

        public java_cup.runtime.Symbol scan()
                                     throws Exception
        Overrides:
        scan in class java_cup.runtime.lr_parser
        Throws:
        Exception
      • setFile

        public void setFile​(String file)
      • report_error

        public void report_error​(String message,
                                 Object info)
        Overrides:
        report_error in class java_cup.runtime.lr_parser
      • unrecovered_syntax_error

        public void unrecovered_syntax_error​(java_cup.runtime.Symbol cur_token)
        Overrides:
        unrecovered_syntax_error in class java_cup.runtime.lr_parser
      • error

        public void error​(String message)
      • error

        public void error​(String message,
                          int line,
                          int col)
      • getFile

        public String getFile()
      • getErrorCount

        public int getErrorCount()
      • getErrors

        public String getErrors()
      • debug_reduce

        public void debug_reduce​(int prod_num,
                                 int nt_num,
                                 int rhs_size)
        Overrides:
        debug_reduce in class java_cup.runtime.lr_parser
      • debug_shift

        public void debug_shift​(java_cup.runtime.Symbol shift_tkn)
        Overrides:
        debug_shift in class java_cup.runtime.lr_parser