51,395
社区成员




void readch() throws IOException {peek = (char)System.in.read(); }
void readch() throws IOException {
File file = new File("E:\\test.txt");
BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
String line = null;
while((line = bufferedReader.readLine()) != null){
peek = (char)bufferedReader.read();
}
bufferedReader.close();
//peek = (char)System.in.read();
}
package main;
import java.io.*; import lexer.*; import parser.*;
public class Main {
public static void main(String[] args) throws IOException {
Lexer lex = new Lexer();
Parser parse = new Parser(lex);
parse.program();
System.out.write('\n');
}
}
还有好多个包。。package main;
import java.io.*; import lexer.*; import parser.*;
public class Main {
public static void main(String[] args) throws IOException {
Lexer lex = new Lexer();
Parser parse = new Parser(lex);
parse.program();
System.out.write('\n');
}
}