diff --git a/tests/self/comp-esc1.sh b/tests/self/comp-esc1.sh index d2d44bef..5f7494ae 100755 --- a/tests/self/comp-esc1.sh +++ b/tests/self/comp-esc1.sh @@ -1,5 +1,5 @@ #./esc1-t.sh debug.es -./esc1-t.sh util.es +#./esc1-t.sh util.es #./esc1-t.sh lex-char.es #./esc1-t.sh lex-token.es #./esc1-t.sh lex-scan.es diff --git a/tests/self/comp-esc3.sh b/tests/self/comp-esc3.sh index 1a3daac3..b58d9f76 100755 --- a/tests/self/comp-esc3.sh +++ b/tests/self/comp-esc3.sh @@ -5,7 +5,7 @@ #./esc1-r.sh util.es #./esc1-r.sh decoder.es #./esc1-r.sh util-tamarin.es -./esc1-r.sh bytestream.es +#./esc1-r.sh bytestream.es #./esc1-r.sh assembler.es #./esc1-r.sh abcfile.es #./esc1-r.sh emitter.es @@ -37,7 +37,7 @@ #./esc3-r.sh util.es #./esc3-r.sh decoder.es #./esc3-r.sh util-tamarin.es -./esc3-r.sh bytestream.es +#./esc3-r.sh bytestream.es #./esc3-r.sh assembler.es #./esc3-r.sh abcfile.es #./esc3-r.sh emitter.es diff --git a/tests/self/esc-t.es b/tests/self/esc-t.es index 484a2ee0..516abc61 100644 --- a/tests/self/esc-t.es +++ b/tests/self/esc-t.es @@ -4,32 +4,18 @@ var str = File.read (fname); print ("compiling ", fname); } -{ - import avmplus.*; - import flash.utils.*; - use namespace Decode; - use namespace Ast; - print ("decoding"); - var bytes = ByteArray.readFile ("esc-env.ast.abc"); - Domain.currentDomain.loadBytes(bytes); // defines global var 'ast' - var nd = program (ast); - var topFixtures = nd.head.fixtures; -} + +var topFixtures = []; + { use namespace Parse; print ("parsing"); var parser = initParser(str,topFixtures); var [ts,nd] = program(); } + { import avmplus.*; import flash.utils.*; - var fname = System.argv[0]; - if (fname==undefined) throw "no file name given"; - print ("reading ", fname+".abc") - var bytes = ByteArray.readFile (fname+".ast.abc"); - Domain.currentDomain.loadBytes(bytes); // defines global var 'ast' - print ("decoding", fname); - var nd = Decode::program (ast); - Util::dumpABCFile(Gen::cg(nd), fname+".abc"); + dumpABCFile(Gen::cg(nd), fname+".abc"); } \ No newline at end of file diff --git a/tests/self/t.es b/tests/self/t.es index 070bbd9e..fba639f9 100644 --- a/tests/self/t.es +++ b/tests/self/t.es @@ -1 +1 @@ -print ('hi') \ No newline at end of file +print ('hello, world') \ No newline at end of file