Go to the documentation of this file.
6 import java.util.Scanner;
11 public abstract class REPL {
12 public static final String
prompt=
"> ";
13 public static String
go( ) {
16 Scanner stdin =
new Scanner(System.in);
17 while( stdin.hasNextLine() )
18 prog =
go_one(prog,stdin.nextLine());
27 static String
go_one( String prog, String line ) {
28 String prog2 = prog+line+
";"+System.lineSeparator();
30 if( te.
_errs ==
null ) {
38 System.out.print( te.
_errs.get(0) );
an implementation of language AA
TypeObj ld(TypeMemPtr ptr)
SB str(SB sb, VBitSet dups, TypeMem mem, boolean debug)
an implementation of language AA
static final String prompt
an implementation of language AA
static String go_one(String prog, String line)
static Env file_scope(Env top_scope)
Tight/tiny StringBuilder wrapper.
static TypeEnv go(Env top, String src, String str)
final ArrayList< Node.ErrMsg > _errs