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

📄 opptable.java

📁 中山大学编译原理课程的一个实验
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package parser;/** * * @author Beeven */public class OPPTable {    public final static int[][] table= new int[][]    {    // num,bool,+-,*/,-,^,fucn,(,,,),Relation,!,&,|,?,:,$                {-1,-1, 1, 1, 1, 1, 1,-1, 1, 1, 1,-5, 1, 1, 1, 1, 1},        {-1,-1,-5,-5,-5,-5,-1,-1,-5, 1,-5,-1, 1, 1, 1, 1, 1},        { 0,-5, 1, 0, 0, 0, 0, 0, 1, 1, 1,-5,-5,-5,-5, 1, 1},        { 0,-5, 1, 1, 0, 0, 0, 0, 1, 1, 1,-5,-5,-5,-5, 1, 1},        { 0,-5, 1, 1, 0, 1, 0, 0, 1, 1, 1,-5,-5,-5,-5, 1, 1},        {0, -5, 1, 1, 0, 0, 0, 0, 1, 1, 1,-5,-5,-5,-5, 1, 1},        {-3,-3,-3,-3,-3,-3,-3, 0,-3, 1,-3,-3,-3,-3,-3, 1,-3},        { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,-2},        { 0,-5, 0, 0, 0, 0, 0, 0, 0, 0,-5,-5,-5,-5, 0, 0,-2},        {-1,-1, 1, 1, 1, 1,-1,-1, 1, 1, 1,-1, 1, 1, 1, 1, 1},        { 0,-5, 0, 0, 0, 0, 0, 0,-5, 1, 1, 1, 1, 1, 1, 1, 1},        { 0, 0,-5,-5,-5,-5,-5, 0,-5, 1, 0, 0, 1, 1, 1, 1, 1},        { 0, 0,-5,-5,-5,-5,-5, 0,-5, 1, 0, 0, 1, 1, 1, 1, 1},        { 0, 0,-5,-5,-5,-5,-5, 0,-5, 1, 0, 0, 0, 1, 1, 1, 1},        { 0,-7, 0, 0, 0, 0, 0, 0,-7,-6, 0,-7,-7,-7, 0, 0,-7},        { 0,-7, 0, 0, 0, 0, 0, 0, 1, 1, 0,-7,-7,-7, 1, 1, 1},        { 0, 0, 0, 0, 0, 0, 0, 0,-3,-3, 0, 0, 0, 0, 0,-7, 2}    };    /* 0 for shift     * 1 for reduce     * 2 for accept     * -1 for MissingOperatorError     * -2 for MissingRightParenthesisException     * -3 for MissingLeftParenthesisException     * -4 for FunctionCallException     * -5 for TypeMismatchedException     * -6 for MissingOperandError     * -7 for TrinaryOperationError     */}

⌨️ 快捷键说明

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