⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mjparser.java

📁 SkipOOMiniJOOL教学语言的编译器前端
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    "\033\120\034\113\035\121\036\122\037\102\040\116\041" +    "\111\042\206\043\124\047\126\050\132\001\001\000\050" +    "\026\123\027\104\030\107\031\112\032\130\033\120\034" +    "\113\035\121\036\122\037\102\040\116\041\111\042\103" +    "\043\124\046\117\047\126\050\132\067\204\070\131\001" +    "\001\000\044\026\123\027\104\030\107\031\112\032\130" +    "\033\120\034\113\035\121\036\122\037\102\040\116\041" +    "\111\042\103\043\124\046\202\047\126\050\132\001\001" +    "\000\050\026\123\027\104\030\107\031\112\032\130\033" +    "\120\034\113\035\121\036\122\037\102\040\116\041\111" +    "\042\103\043\124\046\117\047\126\050\132\067\114\070" +    "\131\001\001\000\002\001\001\000\016\026\123\027\104" +    "\030\201\031\112\047\126\050\140\001\001\000\002\001" +    "\001\000\002\001\001\000\002\001\001\000\016\026\123" +    "\027\104\030\200\031\112\047\126\050\140\001\001\000" +    "\002\001\001\000\002\001\001\000\044\026\123\027\104" +    "\030\107\031\112\032\130\033\120\034\113\035\121\036" +    "\122\037\102\040\116\041\111\042\103\043\124\046\176" +    "\047\126\050\132\001\001\000\002\001\001\000\002\001" +    "\001\000\002\001\001\000\002\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\002\001\001\000" +    "\002\001\001\000\002\001\001\000\002\001\001\000\002" +    "\001\001\000\016\026\123\027\104\030\144\031\112\047" +    "\126\050\140\001\001\000\002\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\004\044\074\001" +    "\001\000\044\026\123\027\104\030\107\031\112\032\130" +    "\033\120\034\113\035\121\036\122\037\102\040\116\041" +    "\111\042\103\043\124\046\134\047\126\050\132\001\001" +    "\000\002\001\001\000\016\026\123\027\104\030\143\031" +    "\112\047\126\050\140\001\001\000\016\026\123\027\104" +    "\030\142\031\112\047\126\050\140\001\001\000\016\026" +    "\123\027\104\030\141\031\112\047\126\050\140\001\001" +    "\000\002\001\001\000\002\001\001\000\002\001\001\000" +    "\002\001\001\000\002\001\001\000\026\026\123\027\104" +    "\030\107\031\112\032\130\033\120\034\113\035\170\047" +    "\126\050\140\001\001\000\026\026\123\027\104\030\107" +    "\031\112\032\130\033\120\034\113\035\147\047\126\050" +    "\140\001\001\000\002\001\001\000\024\026\123\027\104" +    "\030\107\031\112\032\130\033\120\034\167\047\126\050" +    "\140\001\001\000\024\026\123\027\104\030\107\031\112" +    "\032\130\033\120\034\166\047\126\050\140\001\001\000" +    "\024\026\123\027\104\030\107\031\112\032\130\033\120" +    "\034\165\047\126\050\140\001\001\000\024\026\123\027" +    "\104\030\107\031\112\032\130\033\120\034\154\047\126" +    "\050\140\001\001\000\002\001\001\000\022\026\123\027" +    "\104\030\107\031\112\032\130\033\164\047\126\050\140" +    "\001\001\000\022\026\123\027\104\030\107\031\112\032" +    "\130\033\157\047\126\050\140\001\001\000\002\001\001" +    "\000\020\026\123\027\104\030\107\031\112\032\163\047" +    "\126\050\140\001\001\000\020\026\123\027\104\030\107" +    "\031\112\032\162\047\126\050\140\001\001\000\002\001" +    "\001\000\002\001\001\000\002\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\002\001\001\000" +    "\032\026\123\027\104\030\107\031\112\032\130\033\120" +    "\034\113\035\121\036\122\037\172\047\126\050\140\001" +    "\001\000\002\001\001\000\030\026\123\027\104\030\107" +    "\031\112\032\130\033\120\034\113\035\121\036\174\047" +    "\126\050\140\001\001\000\002\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\002\001\001\000" +    "\002\001\001\000\002\001\001\000\002\001\001\000\002" +    "\001\001\000\002\001\001\000\002\001\001\000\042\026" +    "\123\027\104\030\107\031\112\032\130\033\120\034\113" +    "\035\121\036\122\037\102\040\116\041\111\042\210\043" +    "\124\047\126\050\132\001\001\000\002\001\001\000\002" +    "\001\001\000\044\026\123\027\104\030\107\031\112\032" +    "\130\033\120\034\113\035\121\036\122\037\102\040\116" +    "\041\111\042\103\043\124\046\276\047\126\050\132\001" +    "\001\000\044\026\123\027\104\030\107\031\112\032\130" +    "\033\120\034\113\035\121\036\122\037\102\040\116\041" +    "\111\042\103\043\124\046\214\047\126\050\132\001\001" +    "\000\002\001\001\000\004\044\207\001\001\000\042\010" +    "\046\013\217\014\220\015\063\016\051\017\036\020\032" +    "\021\060\022\222\023\224\024\042\025\225\027\041\043" +    "\055\050\064\066\062\001\001\000\002\001\001\000\002" +    "\001\001\000\002\001\001\000\002\001\001\000\002\001" +    "\001\000\002\001\001\000\002\001\001\000\044\026\123" +    "\027\104\030\107\031\112\032\130\033\120\034\113\035" +    "\121\036\122\037\102\040\116\041\111\042\103\043\124" +    "\046\245\047\126\050\132\001\001\000\044\026\123\027" +    "\104\030\107\031\112\032\130\033\120\034\113\035\121" +    "\036\122\037\102\040\116\041\111\042\103\043\124\046" +    "\230\047\126\050\132\001\001\000\002\001\001\000\004" +    "\044\207\001\001\000\042\010\046\013\217\014\220\015" +    "\063\016\051\017\036\020\032\021\060\022\233\023\224" +    "\024\042\025\225\027\041\043\055\050\064\066\062\001" +    "\001\000\002\001\001\000\042\010\046\013\235\014\220" +    "\015\063\016\051\017\036\020\032\021\060\022\236\023" +    "\224\024\042\025\225\027\041\043\055\050\064\066\062" +    "\001\001\000\002\001\001\000\002\001\001\000\042\010" +    "\046\013\240\014\220\015\063\016\051\017\036\020\032" +    "\021\060\022\241\023\224\024\042\025\225\027\041\043" +    "\055\050\064\066\062\001\001\000\002\001\001\000\002" +    "\001\001\000\042\010\046\013\243\014\220\015\063\016" +    "\051\017\036\020\032\021\060\022\244\023\224\024\042" +    "\025\225\027\041\043\055\050\064\066\062\001\001\000" +    "\002\001\001\000\002\001\001\000\002\001\001\000\042" +    "\010\046\013\247\014\220\015\063\016\051\017\036\020" +    "\032\021\060\022\250\023\224\024\042\025\225\027\041" +    "\043\055\050\064\066\062\001\001\000\002\001\001\000" +    "\002\001\001\000\042\010\046\013\252\014\220\015\063" +    "\016\051\017\036\020\032\021\060\022\253\023\224\024" +    "\042\025\225\027\041\043\055\050\064\066\062\001\001" +    "\000\002\001\001\000\002\001\001\000\034\010\046\013" +    "\235\014\033\015\063\016\051\017\036\020\032\021\060" +    "\024\042\027\041\043\055\050\064\066\062\001\001\000" +    "\044\026\123\027\104\030\107\031\112\032\130\033\120" +    "\034\113\035\121\036\122\037\102\040\116\041\111\042" +    "\103\043\124\046\267\047\126\050\132\001\001\000\044" +    "\026\123\027\104\030\107\031\112\032\130\033\120\034" +    "\113\035\121\036\122\037\102\040\116\041\111\042\103" +    "\043\124\046\257\047\126\050\132\001\001\000\002\001" +    "\001\000\004\044\207\001\001\000\042\010\046\013\262" +    "\014\220\015\063\016\051\017\036\020\032\021\060\022" +    "\263\023\224\024\042\025\225\027\041\043\055\050\064" +    "\066\062\001\001\000\002\001\001\000\002\001\001\000" +    "\042\010\046\013\265\014\220\015\063\016\051\017\036" +    "\020\032\021\060\022\266\023\224\024\042\025\225\027" +    "\041\043\055\050\064\066\062\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\042\010\046\013" +    "\271\014\220\015\063\016\051\017\036\020\032\021\060" +    "\022\272\023\224\024\042\025\225\027\041\043\055\050" +    "\064\066\062\001\001\000\002\001\001\000\002\001\001" +    "\000\042\010\046\013\240\014\220\015\063\016\051\017" +    "\036\020\032\021\060\022\274\023\224\024\042\025\225" +    "\027\041\043\055\050\064\066\062\001\001\000\002\001" +    "\001\000\034\010\046\013\243\014\033\015\063\016\051" +    "\017\036\020\032\021\060\024\042\027\041\043\055\050" +    "\064\066\062\001\001\000\002\001\001\000\042\010\046" +    "\013\247\014\220\015\063\016\051\017\036\020\032\021" +    "\060\022\300\023\224\024\042\025\225\027\041\043\055" +    "\050\064\066\062\001\001\000\002\001\001\000\034\010" +    "\046\013\252\014\033\015\063\016\051\017\036\020\032" +    "\021\060\024\042\027\041\043\055\050\064\066\062\001" +    "\001\000\002\001\001\000\002\001\001\000\002\001\001" +    "\000\044\026\123\027\104\030\107\031\112\032\130\033" +    "\120\034\113\035\121\036\122\037\102\040\116\041\111" +    "\042\103\043\124\046\313\047\126\050\132\001\001\000" +    "\044\026\123\027\104\030\107\031\112\032\130\033\120" +    "\034\113\035\121\036\122\037\102\040\116\041\111\042" +    "\103\043\124\046\307\047\126\050\132\001\001\000\002" +    "\001\001\000\004\044\207\001\001\000\034\010\046\013" +    "\262\014\033\015\063\016\051\017\036\020\032\021\060" +    "\024\042\027\041\043\055\050\064\066\062\001\001\000" +    "\034\010\046\013\265\014\033\015\063\016\051\017\036" +    "\020\032\021\060\024\042\027\041\043\055\050\064\066" +    "\062\001\001\000\002\001\001\000\034\010\046\013\271" +    "\014\033\015\063\016\051\017\036\020\032\021\060\024" +    "\042\027\041\043\055\050\064\066\062\001\001\000\002" +    "\001\001\000\002\001\001\000\002\001\001\000\002\001" +    "\001\000\002\001\001\000\002\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\002\001\001\000" +    "\006\006\330\055\332\001\001\000\002\001\001\000\002" +    "\001\001\000\002\001\001\000\002\001\001\000\014\060" +    "\350\061\337\062\340\071\342\072\054\001\001\000\014" +    "\060\336\061\337\062\340\071\342\072\054\001\001\000" +    "\002\001\001\000\002\001\001\000\002\001\001\000\002" +    "\001\001\000\002\001\001\000\002\001\001\000\002\001" +    "\001\000\010\062\346\071\342\072\054\001\001\000\002" +    "\001\001\000\002\001\001\000\002\001\001\000\002\001" +    "\001\000\006\006\353\055\354\001\001\000\002\001\001" +    "\000\002\001\001\000\002\001\001\000\014\052\022\053" +    "\021\054\016\056\020\057\015\001\001\000\002\001\001" +    "\000\002\001\001" });  /** Access to <code>reduce_goto</code> table. */  public short[][] reduce_table() {return _reduce_table;}  /** Instance of action encapsulation class. */  protected CUP$MJParser$actions action_obj;  /** Action encapsulation object initializer. */  protected void init_actions()    {      action_obj = new CUP$MJParser$actions(this);    }  /** Invoke a user supplied parse action. */  public java_cup.runtime.Symbol do_action(    int                        act_num,    java_cup.runtime.lr_parser parser,    java.util.Stack            stack,    int                        top)    throws java.lang.Exception  {    /* call code in generated class */    return action_obj.CUP$MJParser$do_action(act_num, parser, stack, top);  }  /** Indicates start state. */  public int start_state() {return 0;}  /** Indicates start production. */  public int start_production() {return 0;}  /** <code>EOF</code> Symbol index. */  public int EOF_sym() {return 0;}  /** <code>error</code> Symbol index. */  public int error_sym() {return 1;}	public static ASTNode parse(String file) {		MJScanner scanner = null;		MJParser parser = null;        try {          scanner = new MJScanner( new java.io.FileReader(file) );          parser = new MJParser(scanner);          parser.parse();        }        catch (java.io.FileNotFoundException e) {          System.out.println("File not found : \""+file+"\"");        }        catch (java.io.IOException e) {          System.out.println("IO error scanning file \""+file+"\"");          System.out.println(e);        }        catch (Exception e) {          System.out.println("Unexpected exception:");          e.printStackTrace();        }        return parser.action_obj.getAST();	}		public static void main(String[] argv) {		String file;		if (argv.length!=1)			file = "/home/taotao/workspace/Lab3/test/example.mj";		else			file = argv[0];		boolean viewAST = true;		ASTNode block;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -