
cn.wumoe.hime.Main Maven / Gradle / Ivy
package cn.wumoe.hime;
import cn.wumoe.hime.gui.GUI;
import cn.wumoe.hime.lexer.Word;
import java.io.Console;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Console console = System.console();
if (console == null) {
GUI.main(args);
return;
}
if (args.length == 0) {
Hime hime = new Hime();
Scanner scanner = new Scanner(System.in);
while (true) {
System.out.print("HIME> ");
String value = scanner.nextLine();
String result = hime.run(value).toString();
if (Config.OUT)
Config.OUT = false;
else
System.out.println(result);
}
}
Hime hime = new Hime();
hime.run(new File(args[0]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy