?? pl0.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 + -