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

📄 main.java

📁 一个非常好的检索工具
💻 JAVA
字号:
// $Id: Main.java,v 1.3 1999/11/04 14:02:18 shields Exp $// This software is subject to the terms of the IBM Jikes Compiler// License Agreement available at the following URL:// http://www.ibm.com/research/jikes.// Copyright (C) 1983, 1999, International Business Machines Corporation// and others.  All Rights Reserved.// You must accept the terms of that agreement to use this software.public class Main{    public static void main(String[] args) throws java.io.IOException, java.io.FileNotFoundException    {        Option option = new Option(args);        while (true)        {            System.out.print("Expression: ");            LexStream lex_stream = new LexStream();            Scanner scanner = new Scanner(option, lex_stream);            scanner.scan();            if (option.dump)                lex_stream.dump();            Parser parser = new Parser(lex_stream);            Ast root = parser.parse();            if (root != null)                 System.out.println("    " + root.toString(lex_stream) + " = " + root.Value());            else break;        }        return;    }}

⌨️ 快捷键说明

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