Update of /cvsroot/ccmtools/ccmtools/test/AssemblyParser
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11337/test/AssemblyParser
Modified Files:
test1.idl parser.sh
Added Files:
build-parser.sh Makefile
Log Message:
checks the pretty printer
Index: parser.sh
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/test/AssemblyParser/parser.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** parser.sh 12 Feb 2007 14:08:31 -0000 1.1
--- parser.sh 15 Feb 2007 07:24:07 -0000 1.2
***************
*** 1,5 ****
#! /bin/sh
! libdir=$PWD/../../lib
export CLASSPATH=$libdir/java-cup-11a.jar:$libdir/assembly.jar
! java ccmtools.parser.assembly.Main $*
--- 1,9 ----
#! /bin/sh
! thisdir=$(pwd)
! root="$thisdir/../.."
! libdir="$root/lib"
!
export CLASSPATH=$libdir/java-cup-11a.jar:$libdir/assembly.jar
! java ccmtools.parser.assembly.Main "$@" || exit 1
!
--- NEW FILE: Makefile ---
all: test1
parser:
./build-parser.sh
test1: parser
./parser.sh test1.assembly > test1.1
./parser.sh test1.1 > test1.2
diff test1.1 test1.2
rm test1.1 test1.2
Index: test1.idl
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/test/AssemblyParser/test1.idl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test1.idl 12 Feb 2007 14:08:31 -0000 1.1
--- test1.idl 15 Feb 2007 07:24:07 -0000 1.2
***************
*** 2,41 ****
! module Test {
! interface I1 {
! /* empty */
! };
! interface I2 {
! /* empty */
! };
! interface I3 {
! /* empty */
! };
! component C1 {
! attribute string a1;
! attribute long a2;
! provides I1 i1;
! uses I2 i2;
! };
! component C2 {
! attribute long b;
! provides I2 i2;
! uses I3 i3;
! };
! }; // /module Test
! component C3
! {
! attribute long b;
! provides I1 i1;
! uses I3 i3;
! };
--- 2,41 ----
! module Test {
! interface I1 {
! /* empty */
! };
! interface I2 {
! /* empty */
! };
! interface I3 {
! /* empty */
! };
! component C1 {
! attribute string a1;
! attribute long a2;
! provides I1 i1;
! uses I2 i2;
! };
! component C2 {
! attribute long b;
! provides I2 i2;
! uses I3 i3;
! };
! }; // /module Test
! component C3
! {
! attribute long b;
! provides Test::I1 i1;
! uses Test::I3 i3;
! };
--- NEW FILE: build-parser.sh ---
#! /bin/sh
thisdir=$(pwd)
root="$thisdir/../.."
libdir="$root/lib"
cd $root
ant jar.AssemblyMain || exit 1
export CLASSPATH=$libdir/java-cup-11a.jar:$libdir/assembly.jar
cd $thisdir
|