Permalink
Browse files

combining different LDF extractors to one place

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@907 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed Dec 12, 2010
1 parent bff9b3c commit 58362a1a5a5d9549af2aa5712547b239ffc56943
View
@@ -12,10 +12,10 @@ if [ ! -r $1 ]; then
elif [ $# -eq 2 ]
then
rm -f $2
- xsltproc ${SLPS}/shared/xsl/ldf2bgf.xslt $1 > $2
+ xsltproc ${SLPS}/topics/extraction/ldf/ldf2bgf.xslt $1 > $2
elif [ $# -eq 1 ]
then
- xsltproc ${SLPS}/shared/xsl/ldf2bgf.xslt $1 > ${LOCAL}/`basename $1 .ldf`.bgf
+ xsltproc ${SLPS}/topics/extraction/ldf/ldf2bgf.xslt $1 > ${LOCAL}/`basename $1 .ldf`.bgf
else
echo "This tool transforms Language Document Format to BNF-like Grammar Format"
echo "Usage: ldf2bgf <input-language-document> [<output-grammar>]"
View
@@ -15,5 +15,5 @@ elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
exit 1
else
- python ${SLPS}/shared/python/ldf2set.py $1 $2
+ python ${SLPS}/topics/extraction/ldf/ldf2set.py $1 $2
fi
@@ -2,7 +2,7 @@ build:
cd antlr; make build
cd asfix; make build
cd dcg; make build
- cd java2bgf; make build
+ cd java; make build
cd ldf2bgf; make build
cd ldf2pdf; make build
cd sdf2bgf; make build
@@ -13,7 +13,7 @@ test:
cd antlr; make test
cd asfix; make test
cd dcg; make test
- cd java2bgf; make test
+ cd java; make test
cd ldf2bgf; make test
cd ldf2pdf; make test
cd sdf2bgf; make test
@@ -24,7 +24,7 @@ clean:
cd antlr; make clean
cd asfix; make clean
cd dcg; make clean
- cd java2bgf; make clean
+ cd java; make clean
cd ldf2bgf; make clean
cd ldf2pdf; make clean
cd sdf2bgf; make clean
@@ -1,6 +1,6 @@
#!/bin/sh
echo [Test Case] $1 $2
-../../../shared/tools/java2bgf $1 $2 `basename $1`.bgf || exit -1
-../../../shared/tools/validate bgf `basename $1`.bgf || exit -1
-../../../shared/tools/gdt `basename $1`.bgf tests/`basename $1`.baseline || exit -1
+../../../shared/tools/java2bgf $1 $2 tests/`basename $1`.bgf || exit -1
+../../../shared/tools/validate bgf tests/`basename $1`.bgf || exit -1
+../../../shared/tools/gdt tests/`basename $1`.bgf tests/`basename $1`.baseline || exit -1
@@ -0,0 +1,18 @@
+all:
+ make clean
+ make test
+
+build:
+
+test:
+ make test-ldf2bgf
+ make test-ldf2set
+
+test-ldf2bgf:
+ find ../../.. -name "*.ldf" | xargs -n1 ./testperform
+
+test-ldf2set:
+ ../../../shared/tools/ldf2set ../../fl/ldf/fl.ldf samples
+
+clean:
+ rm -rf *.bgf tests/*.bgf samples/* samples.xml *.pyc
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo [Test Case] $1
+../../../shared/tools/ldf2bgf $1 tests/`basename $1 .ldf`.bgf || exit -1
+../../../shared/tools/validate bgf tests/`basename $1 .ldf`.bgf || exit -1
+#../../../shared/tools/gdt tests/`basename $1 .ldf`.bgf tests/`basename $1 .ldf`.baseline || exit -1
@@ -1,12 +0,0 @@
-all:
- make clean
- make test
-
-build:
-
-test:
- find ../../.. -name "*.ldf" | xargs -n1 ../../../shared/tools/ldf2bgf
- ls -1 *.bgf | xargs -n1 ../../../shared/tools/validate bgf
-
-clean:
- rm -f *.bgf
@@ -1,7 +0,0 @@
-build:
-
-test:
- ../../../shared/tools/ldf2set ../../fl/ldf/fl.ldf samples
-
-clean:
- rm -rf samples/* samples.xml *.pyc

0 comments on commit 58362a1

Please sign in to comment.