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

📄 pl0.java

📁 pl0编译器的java版本
💻 JAVA
字号:
import java.io.*;public class PL0 {	    public static void main(String args[]) throws IOException {        BufferedReader in           = new BufferedReader(new InputStreamReader(System.in));        System.out.println("Please input the pl/0 file:");        String src = in.readLine();        System.out.println("Please input the result file name:");        String res = in.readLine();                try {            BufferedReader inp = new BufferedReader(new FileReader(src));            PrintWriter outp = new PrintWriter(new FileOutputStream(res), true);            Parse p = new Parse();            CodeSegment cs = p.doScan(inp, outp);                    if (cs != null) {                cs.interpret(outp);                System.out.println("Successfully finished this pl/0 program");            } else {                System.out.println("Errors in pl/0 program");                outp.println("Errors in pl/0 program");            }        } catch (Exception e) {            e.printStackTrace();        }           }}

⌨️ 快捷键说明

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