Skip to content

Commit

Permalink
small fix to esc-t driver
Browse files Browse the repository at this point in the history
--HG--
branch : com.mozilla.es4.smlnj
extra : convert_revision : f09c911072a4ecf78033f827d42e0bd6e752ed9a
  • Loading branch information
jeffdyer committed Sep 4, 2007
1 parent 79e3776 commit 1d94b78
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion tests/self/comp-esc1.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/self/comp-esc3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
24 changes: 5 additions & 19 deletions tests/self/esc-t.es
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
2 changes: 1 addition & 1 deletion tests/self/t.es
Original file line number Diff line number Diff line change
@@ -1 +1 @@
print ('hi')
print ('hello, world')

0 comments on commit 1d94b78

Please sign in to comment.