Skip to content

Commit

Permalink
essage=support TernaryExprs in esc; remove dependency on Unicode
Browse files Browse the repository at this point in the history
--HG--
branch : com.mozilla.es4.smlnj
extra : convert_revision : 04923cf4fa0d434efdabef2872c25b12b6b661cd
  • Loading branch information
jeffdyer committed Aug 31, 2007
1 parent 0f24ac4 commit 4d87455
Show file tree
Hide file tree
Showing 33 changed files with 103 additions and 278,996 deletions.
14 changes: 8 additions & 6 deletions comp-esc1.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
#./esc1.sh tests/self/debug.es
#./esc1.sh tests/self/ast.es
#./esc1.sh tests/self/lex-char.es
#./esc1.sh tests/self/lex-token.es
#./esc1.sh tests/self/lex-scan.es
#./esc1.sh tests/self/ast.es
#./esc1.sh tests/self/parse-util.es
#./esc1.sh tests/self/parse-ident.es
#./esc1.sh tests/self/parse-expr.es
#./esc1.sh tests/self/parse-ptrn.es
#./esc1.sh tests/self/parse-type.es
#./esc1.sh tests/self/parse-stmt.es
./esc1.sh tests/self/parse-defn.es
#./esc1.sh tests/self/parse-defn.es
#./esc1.sh tests/self/parse-prgm.es
#./esc1.sh tests/self/util-tamarin.es
#./esc1.sh tests/self/esc1.es

#./esc3.sh tests/self/debug.es
#./esc3.sh tests/self/ast.es
#./esc3.sh tests/self/lex-char.es
#./esc3.sh tests/self/lex-token.es
./esc3.sh tests/self/lex-scan.es
#./esc3.sh tests/self/lex-scan.es
#./esc3.sh tests/self/parse-util.es
#./esc3.sh tests/self/parse-ident.es
#./esc3.sh tests/self/parse-expr.es
#./esc3.sh tests/self/parse-ptrn.es
#./esc3.sh tests/self/parse-type.es
#./esc3.sh tests/self/parse-stmt.es
./esc3.sh tests/self/parse-defn.es
#./esc3.sh tests/self/parse-prgm.es
./esc3.sh tests/self/parse-prgm.es
#./esc3.sh tests/self/util-tamarin.es
#./esc3.sh tests/self/esc1.es

/work/tamarin/bin/shell -Dinterp tests/self/debug.es.abc tests/self/lex-char.es.abc tests/self/lex-token.es.abc tests/self/lex-scan.es.abc tests/self/parse-util.es.abc tests/self/parse-ident.es.abc tests/self/parse-expr.es.abc tests/self/parse-ptrn.es.abc tests/self/parse-type.es.abc tests/self/parse-smtn.es.abc tests/self/parse-defn.es.abc tests/self/parse-prgm.es.abc tests/self/esc1.es.abc
/work/tamarin/bin/shell -Dinterp tests/self/debug.es.abc tests/self/lex-char.es.abc tests/self/lex-token.es.abc tests/self/lex-scan.es.abc tests/self/parse-util.es.abc tests/self/parse-ident.es.abc tests/self/parse-expr.es.abc tests/self/parse-ptrn.es.abc tests/self/parse-type.es.abc tests/self/parse-stmt.es.abc tests/self/parse-defn.es.abc tests/self/parse-prgm.es.abc tests/self/util-tamarin.es.abc tests/self/esc1.es.abc

zip abc tests/self/debug.es.abc tests/self/lex-char.es.abc tests/self/lex-token.es.abc tests/self/lex-scan.es.abc tests/self/parse-util.es.abc tests/self/parse-ident.es.abc tests/self/parse-expr.es.abc tests/self/parse-ptrn.es.abc tests/self/parse-type.es.abc tests/self/parse-stmt.es.abc tests/self/parse-defn.es.abc tests/self/parse-prgm.es.abc tests/self/esc1.es.abc tests/self/debug.es.ast tests/self/lex-char.es.ast tests/self/lex-token.es.ast tests/self/lex-scan.es.ast tests/self/parse-util.es.ast tests/self/parse-ident.es.ast tests/self/parse-expr.es.ast tests/self/parse-ptrn.es.ast tests/self/parse-type.es.ast tests/self/parse-stmt.es.ast tests/self/parse-defn.es.ast tests/self/parse-prgm.es.ast tests/self/esc1.es.ast
zip abc tests/self/debug.es.abc tests/self/lex-char.es.abc tests/self/lex-token.es.abc tests/self/lex-scan.es.abc tests/self/parse-util.es.abc tests/self/parse-ident.es.abc tests/self/parse-expr.es.abc tests/self/parse-ptrn.es.abc tests/self/parse-type.es.abc tests/self/parse-stmt.es.abc tests/self/parse-defn.es.abc tests/self/parse-prgm.es.abc tests/self/util-tamarin.es.abc tests/self/esc1.es.abc tests/self/debug.es.ast tests/self/lex-char.es.ast tests/self/lex-token.es.ast tests/self/lex-scan.es.ast tests/self/parse-util.es.ast tests/self/parse-ident.es.ast tests/self/parse-expr.es.ast tests/self/parse-ptrn.es.ast tests/self/parse-type.es.ast tests/self/parse-stmt.es.ast tests/self/parse-defn.es.ast tests/self/parse-prgm.es.ast tests/self/util-tamarin.es.ast tests/self/esc1.es.ast tests/self/debug.es tests/self/lex-char.es tests/self/lex-token.es tests/self/lex-scan.es tests/self/parse-util.es tests/self/parse-ident.es tests/self/parse-expr.es tests/self/parse-ptrn.es tests/self/parse-type.es tests/self/parse-stmt.es tests/self/parse-defn.es tests/self/parse-prgm.es tests/self/util-tamarin.es tests/self/esc1.es
14 changes: 7 additions & 7 deletions comp-esc2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
#./esc1.sh tests/self/ast.es
#./esc1.sh tests/self/decoder.es
#./esc1.sh tests/self/encoder.es
#./esc1.sh tests/self/esc2.es

./esc2.sh tests/self/debug.es
./esc2.sh tests/self/ast.es
./esc2.sh tests/self/decoder.es
./esc2.sh tests/self/encoder.es
./esc2.sh tests/self/esc2.es
#./esc2.sh tests/self/debug.es
#./esc2.sh tests/self/ast.es
#./esc2.sh tests/self/decoder.es
#./esc2.sh tests/self/encoder.es

#./esc3.sh tests/self/debug.es
#./esc3.sh tests/self/ast.es
#./esc3.sh tests/self/decoder.es
#./esc3.sh tests/self/encoder.es

#./esc.sh tests/self/util-tamarin.es
#./esc.sh tests/self/esc2.es

### compile test case: print('hello world') will do
#./esc1.sh tests/self/t.es
#./esc.sh tests/self/t.es.ast

/work/tamarin/bin/shell -Dinterp -Dverbose tests/self/debug.es.abc tests/self/ast.es.abc tests/self/t.es.ast.abc tests/self/decoder.es.abc tests/self/encoder.es.abc tests/self/esc2.es.abc
/work/tamarin/bin/shell -Dinterp tests/self/debug.es.abc tests/self/ast.es.abc tests/self/t.es.ast.abc tests/self/decoder.es.abc tests/self/encoder.es.abc tests/self/util-tamarin.es.abc tests/self/esc2.es.abc
7 changes: 7 additions & 0 deletions esc-env.ast
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ var ast =
, { 'ast_class': 'NamespaceFixture'
, 'ns': { 'ast_class': 'AnonymousNamespace'
, 'name': 'Emit' } } ]
, [ { 'ast_class': 'PropName'
, 'name': { 'ns': { 'ast_class': 'PublicNamespace'
, 'name': '' }
, 'id': 'Unicode' } }
, { 'ast_class': 'NamespaceFixture'
, 'ns': { 'ast_class': 'AnonymousNamespace'
, 'name': 'Unicode' } } ]
, ]
, 'exprs': [ ] }
, 'block': { 'ast_class': 'Block'
Expand Down
6 changes: 5 additions & 1 deletion esc1.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
echo esc1 $1
cp $1 esc-tmp.es

make run-dumped FILE="tests/self/debug.es tests/self/util.es tests/self/util-es4ri.es tests/self/ast.es tests/self/decoder.es tests/self/encoder.es tests/self/lex-char.es tests/self/lex-token.es tests/self/lex-scan.es tests/self/parse-util.es tests/self/parse-ident.es tests/self/parse-expr.es tests/self/parse-ptrn.es tests/self/parse-type.es tests/self/parse-stmt.es tests/self/parse-defn.es tests/self/parse-prgm.es tests/self/esc1.es"
cp esc-tmp.ast $1.1.ast

#/work/tamarin/bin/shell tests/self/tamarin-util.es.abc tests/self/debug.es.abc tests/self/lex-char.es.abc tests/self/lex-token.es.abc tests/self/lex-scan.es.abc tests/self/parse-util.es.abc tests/self/parse-ident.es.abc tests/self/parse-expr.es.abc tests/self/parse-ptrn.es.abc tests/self/parse-type.es.abc tests/self/parse-smtn.es.abc tests/self/parse-defn.es.abc tests/self/parse-prgm.es.abc tests/self/esc1.es.abc

cp esc-tmp.ast $1.ast
cp esc-tmp.ast $1.ast1
rm esc-tmp.es
rm esc-tmp.ast

Expand Down
15 changes: 11 additions & 4 deletions esc2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
cp $1.ast esc-tmp.ast
cp $1.ast $1.1.ast
make run-dumped FILE="tests/self/debug.es tests/self/ast.es tests/self/encoder.es tests/self/decoder.es tests/self/util.es tests/self/util-es4ri.es esc-tmp.ast tests/self/esc2.es"
cp $1.ast $1.ast1

#make run-dumped FILE="tests/self/debug.es tests/self/ast.es tests/self/encoder.es tests/self/decoder.es tests/self/util.es tests/self/util-es4ri.es esc-tmp.ast tests/self/esc2.es"

./esc.sh esc-tmp.es.ast

/work/tamarin/bin/shell tests/self/debug.es.abc tests/self/ast.es.abc tests/self/esc-tmp.es.ast.abc tests/self/decoder.es.abc tests/self/encoder.es.abc tests/self/util-tamarin.es.abc tests/self/esc2.es.abc

cp esc-tmp.ast $1.ast
cp esc-tmp.ast $1.2.ast
diff -s $1.1.ast $1.2.ast
cp esc-tmp.ast $1.ast2
diff -s $1.ast1 $1.ast2
rm esc-tmp.ast
2 changes: 2 additions & 0 deletions esc3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ make run-dumped FILE="tests/self/debug.es tests/self/ast.es tests/self/decoder.e
# java -cp /work/asc/lib/asc.jar macromedia.asc.embedding.Main -d -m esc-tmp.as

cp esc-tmp.abc $1.abc

rm esc-tmp.ast
2 changes: 1 addition & 1 deletion run-esc.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cp $1 esc-tmp.es
make run-dumped FILE="tests/self/debug.es tests/self/ast.es tests/self/encoder.es tests/self/decoder.es tests/self/lex-char.es tests/self/lex-token.es tests/self/lex-scan.es tests/self/util.es tests/self/parse-util.es tests/self/parse-ident.es tests/self/parse-expr.es tests/self/parse-ptrn.es tests/self/parse-type.es tests/self/parse-stmt.es tests/self/parse-defn.es tests/self/parse-prgm.es tests/self/util-es4ri.es tests/self/bytestream.es tests/self/abcfile.es tests/self/assembler.es tests/self/emitter.es tests/self/cogen-stmt.es tests/self/cogen-expr.es tests/self/cogen.es tests/self/esc.es"
make run-dumped FILE="tests/self/debug.es tests/self/ast.es tests/self/encoder.es tests/self/decoder.es tests/self/lex-char.es tests/self/lex-token.es tests/self/lex-scan.es tests/self/util.es tests/self/parse-util.es tests/self/parse-ident.es tests/self/parse-expr.es tests/self/parse-ptrn.es tests/self/parse-type.es tests/self/parse-stmt.es tests/self/parse-defn.es tests/self/parse-prgm.es tests/self/util-es4ri.es tests/self/bytestream.es tests/self/abcfile.es tests/self/assembler.es tests/self/emitter.es tests/self/cogen.es tests/self/cogen-stmt.es tests/self/cogen-expr.es tests/self/esc.es"

cp esc-tmp.il $1.il
cp esc-tmp.abc $1.abc
Expand Down
Loading

0 comments on commit 4d87455

Please sign in to comment.