Skip to content

Commit

Permalink
deyaccification scenario for B=AB? ==> B=A+
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@339 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Oct 13, 2008
1 parent 5417c25 commit 3952994
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions topics/transformation/xbgf/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test:
@make deyaccify2.quiet
@make deyaccify3.quiet
@make deyaccify4.quiet
@make deyaccify5.quiet
@make distribute1.quiet
@make eliminate.quiet
@make extract1.quiet
Expand Down
14 changes: 14 additions & 0 deletions topics/transformation/xbgf/tests/deyaccify5.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<xns1:grammar xmlns:xns1="http://planet-sl.org/bgf">
<xns1:production>
<nonterminal>Annotations</nonterminal>
<xns1:expression>
<plus>
<xns1:expression>
<nonterminal>Annotation</nonterminal>
</xns1:expression>
</plus>
</xns1:expression>
</xns1:production>
</xns1:grammar>
21 changes: 21 additions & 0 deletions topics/transformation/xbgf/tests/deyaccify5.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>

<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>Annotations</nonterminal>
<bgf:expression>
<sequence>
<bgf:expression>
<nonterminal>Annotation</nonterminal>
</bgf:expression>
<bgf:expression>
<optional>
<bgf:expression>
<nonterminal>Annotations</nonterminal>
</bgf:expression>
</optional>
</bgf:expression>
</sequence>
</bgf:expression>
</bgf:production>
</bgf:grammar>
5 changes: 5 additions & 0 deletions topics/transformation/xbgf/tests/deyaccify5.xbgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<xbgf:sequence
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">
<xbgf:deyaccify>Annotations</xbgf:deyaccify>
</xbgf:sequence>

0 comments on commit 3952994

Please sign in to comment.