Permalink
Browse files

Java grammars added to the zoo

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@795 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed May 7, 2010
1 parent 6cdf991 commit 4a843e3dece2af0751ac0e31c3a6632488b72423
View
@@ -24,5 +24,5 @@ elif [ ! -r $4 ]; then
else
python ${SLPS}/topics/extraction/bnf2bgf/pdf2lll.py $1 intermediate.lll $3 $4
python ${SLPS}/topics/extraction/bnf2bgf/lll2bgf.py intermediate.lll $2
rm -f intermediate.lll
#rm -f intermediate.lll
fi
@@ -54,7 +54,7 @@ def readTerminalsList(f):
except IndexError,e:
print 'index error with',kw,len(kw)
punctuators.reverse()
print 'Punctuators:',punctuators
#print 'Punctuators:',punctuators
knownPostfixes = ('+','*','?')
@@ -202,7 +202,6 @@ def massageGrammarRule(context,nt):
print 'L-Splitting',tokens[j],'into',ts
tokens[j] = ts
else:
print 'NOT L-splitting',tokens[j],'into',ts
ts = splitTrailing(tokens[j],knownTerminals)
if ts.find(' ')>-1 and (ts.split()[0] in grammar.keys() or ts.split()[-1] in ignored):
print 'T-Splitting',tokens[j],'into',ts
View
@@ -2,13 +2,16 @@ build:
cd c && make build
cd cpp && make build
cd csharp && make build
cd java && make build
clean:
cd c && make clean
cd cpp && make clean
cd csharp && make clean
cd java && make clean
test:
cd c && make test
cd cpp && make test
cd csharp && make test
cd java && make test
@@ -0,0 +1,14 @@
build:
cd jls1 && make build
cd jls2 && make build
cd jls3 && make build
clean:
cd jls1 && make clean
cd jls2 && make clean
cd jls3 && make clean
test:
cd jls1 && make test
cd jls2 && make test
cd jls3 && make test
@@ -0,0 +1,32 @@
all:
make build
make test
build:
make impl
make read
debug:
python ../../../../shared/python/getpre.py syntax.kw impl.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html impl1.bgf -v
python ../../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html read1.bgf -v
impl:
@echo "Extracting impl1" > /dev/stderr
python ../../../../shared/python/getpre.py syntax.kw impl.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html impl1.bgf
read:
@echo "Extracting read1" > /dev/stderr
python ../../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html read1.bgf
test:
../../../../shared/tools/checkxml bgf impl1.bgf
../../../../shared/tools/checkxml bgf read1.bgf
../../../../shared/tools/gdts impl1.bgf extracted-implementable-grammar.bgf
../../../../shared/tools/gdts read1.bgf extracted-readable-grammar.bgf
clean:
rm -f *.bgf parse.html
File renamed without changes.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,30 @@
all:
make build
make test
build:
make impl
make read
debug:
python ../../../extraction/bnf2bgf/html2bgf.py impl.html impl2.bgf -v
python ../../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html read2.bgf -v
impl:
@echo "Extracting impl2" > /dev/stderr
python ../../../extraction/bnf2bgf/html2bgf.py impl.html impl2.bgf
read:
@echo "Extracting read2" > /dev/stderr
python ../../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html read2.bgf
test:
../../../../shared/tools/checkxml bgf impl2.bgf
../../../../shared/tools/checkxml bgf read2.bgf
../../../../shared/tools/gdts impl2.bgf extracted-implementable-grammar.bgf
../../../../shared/tools/gdts read2.bgf extracted-readable-grammar.bgf
clean:
rm -f *.bgf parse.html
File renamed without changes.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,30 @@
all:
make build
make test
build:
make impl
make read
debug:
python ../../../extraction/bnf2bgf/html2bgf.py impl.html impl3.bgf -v
python ../../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html read3.bgf -v
impl:
@echo "Extracting impl3" > /dev/stderr
python ../../../extraction/bnf2bgf/html2bgf.py impl.html impl3.bgf
read:
@echo "Extracting read3" > /dev/stderr
python ../../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../../extraction/bnf2bgf/html2bgf.py parse.html read3.bgf
test:
../../../../shared/tools/checkxml bgf impl3.bgf
../../../../shared/tools/checkxml bgf read3.bgf
../../../../shared/tools/gdts impl3.bgf extracted-implementable-grammar.bgf
../../../../shared/tools/gdts read3.bgf extracted-readable-grammar.bgf
clean:
rm -f *.bgf parse.html
File renamed without changes.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
File renamed without changes.
File renamed without changes.
View
@@ -1,27 +0,0 @@
all:
make impl
make read
make test
debug:
python ../../../shared/python/getpre.py syntax.kw impl.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html impl1.bgf -v
python ../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html read1.bgf -v
impl:
@echo "Extracting impl1" > /dev/stderr
python ../../../shared/python/getpre.py syntax.kw impl.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html impl1.bgf
read:
@echo "Extracting read1" > /dev/stderr
python ../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html read1.bgf
test:
../../../shared/tools/checkxml bgf impl1.bgf
../../../shared/tools/checkxml bgf read1.bgf
clean:
rm -f *.bgf parse.html
View
@@ -1,25 +0,0 @@
all:
make impl
make read
make test
debug:
python ../../extraction/bnf2bgf/html2bgf.py impl.html impl2.bgf -v
python ../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html read2.bgf -v
impl:
@echo "Extracting impl2" > /dev/stderr
python ../../extraction/bnf2bgf/html2bgf.py impl.html impl2.bgf
read:
@echo "Extracting read2" > /dev/stderr
python ../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html read2.bgf
test:
../../../shared/tools/checkxml bgf impl2.bgf
../../../shared/tools/checkxml bgf read2.bgf
clean:
rm -f *.bgf parse.html
View
@@ -1,25 +0,0 @@
all:
make impl
make read
make test
debug:
python ../../extraction/bnf2bgf/html2bgf.py impl.html impl3.bgf -v
python ../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html read3.bgf -v
impl:
@echo "Extracting impl3" > /dev/stderr
python ../../extraction/bnf2bgf/html2bgf.py impl.html impl3.bgf
read:
@echo "Extracting read3" > /dev/stderr
python ../../../shared/python/getpre.py collect.kw read.html parse.html
python ../../extraction/bnf2bgf/html2bgf.py parse.html read3.bgf
test:
../../../shared/tools/checkxml bgf impl3.bgf
../../../shared/tools/checkxml bgf read3.bgf
clean:
rm -f *.bgf parse.html
View
@@ -7,7 +7,7 @@
</shortcut>
<shortcut>
<name>java</name>
<expansion>..</expansion>
<expansion>../../grammars/java</expansion>
</shortcut>
<shortcut>
<name>tools</name>
@@ -1,6 +1,6 @@
build:
xmllint --noout --schema related.xsd related.xml
xsltproc links2html.xslt related.xml | python ../../presentation/ldf2pdf/closemeta.py > related.html
xsltproc links2html.xslt related.xml | python ../../../shared/python/closemeta.py > related.html
clean:
rm -f related.html

0 comments on commit 4a843e3

Please sign in to comment.