-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enforcing naming convention; deleting obsolete directories ; adding a…
… test case to the set git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@906 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
1ed736c
commit bff9b3c
Showing
12 changed files
with
481 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
build: | ||
cd antlr2bgf; make build | ||
cd asfix2btf; make build | ||
cd dcg2bgf; make build | ||
cd antlr; make build | ||
cd asfix; make build | ||
cd dcg; make build | ||
cd java2bgf; make build | ||
cd ldf2bgf; make build | ||
cd ldf2pdf; make build | ||
cd sdf2bgf; make build | ||
cd xml2btf; make build | ||
cd xsd2bgf; make build | ||
cd xsd2ldf; make build | ||
cd xsd; make build | ||
|
||
test: | ||
cd antlr2bgf; make test | ||
cd asfix2btf; make test | ||
cd dcg2bgf; make test | ||
cd antlr; make test | ||
cd asfix; make test | ||
cd dcg; make test | ||
cd java2bgf; make test | ||
cd ldf2bgf; make test | ||
cd ldf2pdf; make test | ||
cd sdf2bgf; make test | ||
cd xml2btf; make test | ||
cd xsd2bgf; make test | ||
cd xsd2ldf; make test | ||
cd xsd; make test | ||
|
||
clean: | ||
cd antlr2bgf; make clean | ||
cd asfix2btf; make clean | ||
cd dcg2bgf; make clean | ||
cd antlr; make clean | ||
cd asfix; make clean | ||
cd dcg; make clean | ||
cd java2bgf; make clean | ||
cd ldf2bgf; make clean | ||
cd ldf2pdf; make clean | ||
cd sdf2bgf; make clean | ||
cd xml2btf; make clean | ||
cd xsd2bgf; make clean | ||
cd xsd2ldf; make clean | ||
cd xsd; make clean |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
build: | ||
cd slps/java2bgf; javac *.java | ||
|
||
test: | ||
./testperform ../../fl/java1 types | ||
./testperform ../../fl/java3 fl | ||
|
||
clean: | ||
rm -f *~ tests/*.bgf slps/java2bgf/*.class |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>Apply</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>name</selector> | ||
<bgf:expression> | ||
<value>string</value> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>args</selector> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<any/> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Argument</nonterminal> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>name</selector> | ||
<bgf:expression> | ||
<value>string</value> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Binary</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>ops</selector> | ||
<bgf:expression> | ||
<nonterminal>Ops</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>left</selector> | ||
<bgf:expression> | ||
<nonterminal>Expr</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>right</selector> | ||
<bgf:expression> | ||
<nonterminal>Expr</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Expr</nonterminal> | ||
<bgf:expression> | ||
<choice> | ||
<bgf:expression> | ||
<nonterminal>Apply</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>Argument</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>Binary</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>IfThenElse</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>Literal</nonterminal> | ||
</bgf:expression> | ||
</choice> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Function</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>name</selector> | ||
<bgf:expression> | ||
<value>string</value> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>args</selector> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<any/> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>rhs</selector> | ||
<bgf:expression> | ||
<nonterminal>Expr</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>IfThenElse</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>ifExpr</selector> | ||
<bgf:expression> | ||
<nonterminal>Expr</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>thenExpr</selector> | ||
<bgf:expression> | ||
<nonterminal>Expr</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>elseExpr</selector> | ||
<bgf:expression> | ||
<nonterminal>Expr</nonterminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Literal</nonterminal> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>info</selector> | ||
<bgf:expression> | ||
<value>int</value> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Ops</nonterminal> | ||
<bgf:expression> | ||
<choice> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>Equal</selector> | ||
<bgf:expression> | ||
<epsilon/> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>Plus</selector> | ||
<bgf:expression> | ||
<epsilon/> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>Minus</selector> | ||
<bgf:expression> | ||
<epsilon/> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</choice> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Program</nonterminal> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>functions</selector> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<any/> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>Visitor</nonterminal> | ||
<bgf:expression> | ||
<empty/> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
Oops, something went wrong.