Package mini_c

Class MyParser


  • public class MyParser
    extends Parser
    • Field Summary

      • Fields inherited from class java_cup.runtime.lr_parser

        _done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, symbolFactory, tos
    • Constructor Summary

      Constructors 
      Constructor Description
      MyParser​(java_cup.runtime.Scanner scanner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void report_error​(java.lang.String message, java.lang.Object info)  
      void report_fatal_error​(java.lang.String message, java.lang.Object info)  
      (package private) java.lang.String showSymbol​(int token)  
      • Methods inherited from class java_cup.runtime.lr_parser

        advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, getScanner, getSymbolFactory, parse, parse_lookahead, read_lookahead, restart_lookahead, scan, setScanner, shift_under_error, syntax_error, try_parse_ahead, unpackFromStrings, unrecovered_syntax_error, user_init
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyParser

        MyParser​(java_cup.runtime.Scanner scanner)
    • Method Detail

      • report_error

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

        public void report_fatal_error​(java.lang.String message,
                                       java.lang.Object info)
                                throws java.lang.Exception
        Overrides:
        report_fatal_error in class java_cup.runtime.lr_parser
        Throws:
        java.lang.Exception
      • showSymbol

        java.lang.String showSymbol​(int token)