Skip to content

Commit

Permalink
wrapping Rascal
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1141 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Dec 7, 2011
1 parent 99e0349 commit d8259f7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file added download/rascal.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions shared/tools/edd2rsc
@@ -0,0 +1,20 @@
#!/bin/sh

LOCAL=${PWD}
cd `dirname $0`
cd ../..
SLPS=${PWD}
cd ${LOCAL}

if [ $# -ne 2 ]; then
echo "This tool pretty-prints BGF, generating an SDF."
echo "Usage: edd2rsc <input-edd> <output-name>"
exit 1
elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
exit 1
fi

xsltproc ${SLPS}/shared/xsl/edd-export.xslt $1 > ${SLPS}/topics/recovery/edd2rsc/edd.txt
cd ${SLPS}/topics/recovery/edd2rsc && java -jar ${SLPS}/download/rascal.jar Transformer.rsc edd.txt $2
mv ${SLPS}/topics/recovery/edd2rsc/$2.rsc ${LOCAL}

0 comments on commit d8259f7

Please sign in to comment.