Permalink
Browse files

updating topics/extraction: (semi)fixing asfix-to-btf

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@830 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed Sep 28, 2010
1 parent e242f00 commit 257f3101f8078c33060a9b9680b5217b879d00a9
View
@@ -18,11 +18,11 @@ elif [ -z `which asfe` ] || [ -z `which sglr` ] || [ -z `which unparsePT` ]; the
exit 2
else
# Build extractor if needed
cd ${SLPS}/topics/extraction/asfix2btf
cd ${SLPS}/topics/extraction/asfix
make build
cd ${LOCAL1}
cat $2 | python ${SLPS}/topics/fl/asfsdf/pre.py | sglr -p ${SLPS}/topics/fl/asfsdf/FL.tbl -t > $3.trm
(echo "main("; cat $3.trm; echo ")" ) | sglr -p ${SLPS}/topics/extraction/asfix2btf/Main.tbl | asfe -e ${SLPS}/topics/extraction/asfix2btf/Main.eqs | unparsePT > $3.tmp
(echo "main("; cat $3.trm; echo ")" ) | sglr -p ${SLPS}/topics/extraction/asfix/Main.tbl | asfe -e ${SLPS}/topics/extraction/asfix/Main.eqs | unparsePT > $3.tmp
xsltproc ${SLPS}/shared/xsl/btf2btf.xslt $3.tmp >$3
rm -f $3.tmp $3.trm
fi
@@ -7,7 +7,9 @@
</shortcut>
<shortcut>
<name>fl</name>
<expansion>../../fl</expansion>
<expansion>
<expand>slps</expand>/topics/fl
</expansion>
</shortcut>
<shortcut>
<name>tools</name>
@@ -1,4 +1,4 @@
metaenv = `which asfe | xargs dirname`/..
metaenv = /opt/meta
sdfl = ${metaenv}/share/sdf-library/library
asfl = ${metaenv}/share/asf-library/library
@@ -14,16 +14,15 @@ Main.tbl: *.sdf
else \
make tblcat; \
fi
sdf2table -m Main -i Main.def -o Main.tbl
tblpack:
pack-sdf -i Main.sdf -I ${sdfl} -o Main.def
sdf2table -m Main Main.def
tblcat:
@echo "definition" > Main.def
@AA=${PWD};cd ${sdfl};cat $${AA}/sdflib.list | xargs -n1 -J % cat % >>$${AA}/Main.def
@cat Main.sdf Tokens.sdf AsFixTokens.sdf AsFixToBGF.sdf >> Main.def
sdf2table -m Main Main.def
test:
@echo "main(" > asfix.trm

0 comments on commit 257f310

Please sign in to comment.