-
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.
intermediate state of Java convergence
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@289 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
694f5c4
commit f159b62
Showing
12 changed files
with
1,089 additions
and
97 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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<xbgf:sequence | ||
xmlns:bgf="http://planet-sl.org/bgf" | ||
xmlns:xbgf="http://planet-sl.org/xbgf"> | ||
|
||
<!-- | ||
NOT semantic-preserving in any way. | ||
|
||
- Fail: MethodBody. | ||
- [], n(Block) | ||
vs. | ||
- [], ;([n(Block), t((;))]) | ||
--> | ||
<xbgf:vertical> | ||
<nonterminal>MethodBody</nonterminal> | ||
</xbgf:vertical> | ||
<xbgf:remove> | ||
<bgf:production> | ||
<nonterminal>MethodBody</nonterminal> | ||
<bgf:expression> | ||
<terminal>;</terminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:remove> | ||
|
||
<!-- | ||
- Fail: InterfaceDeclaration. | ||
- [], ,([t(interface), n(Identifier), ?(,([t(extends), n(TypeList)])), n(InterfaceBody)]) | ||
vs. | ||
- [], ,([?(n(InterfaceModifiers)), n(Identifier), ?(,([t(extends), n(TypeList)])), n(InterfaceBody)]) | ||
--> | ||
<xbgf:project> | ||
<bgf:production> | ||
<nonterminal>InterfaceDeclaration</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>interface</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>Identifier</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>extends</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>TypeList</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>InterfaceBody</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:project> | ||
</xbgf:sequence> |
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,68 @@ | ||
<xbgf:sequence | ||
xmlns:bgf="http://planet-sl.org/bgf" | ||
xmlns:xbgf="http://planet-sl.org/xbgf"> | ||
<!-- | ||
- Fail: SwitchBlockStatementGroups. | ||
- [], *(n(SwitchBlockStatementGroup)) | ||
vs. | ||
- [], ;([n(SwitchBlockStatementGroup), ,([n(SwitchBlockStatementGroups), n(SwitchBlockStatementGroup)])]) | ||
--> | ||
<xbgf:deyaccify>SwitchBlockStatementGroups</xbgf:deyaccify> | ||
<xbgf:extract> | ||
<bgf:production> | ||
<nonterminal>SwitchBlockStatementGroupsOptPlus</nonterminal> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<nonterminal>SwitchBlockStatementGroups</nonterminal> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:extract> | ||
<xbgf:inline>SwitchBlockStatementGroups</xbgf:inline> | ||
<xbgf:rename> | ||
<nonterminal> | ||
<from>SwitchBlockStatementGroupsOptPlus</from> | ||
<to>SwitchBlockStatementGroups</to> | ||
</nonterminal> | ||
</xbgf:rename> | ||
<!-- replace by massage later --> | ||
<xbgf:massage> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>SwitchBlockStatementGroup</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>SwitchBlockStatementGroup</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</xbgf:massage> | ||
|
||
<!-- | ||
- Fail: Catches. | ||
- [], ,([n(CatchClause), *(n(CatchClause))]) | ||
vs. | ||
- [], ;([n(CatchClause), ,([n(Catches), n(CatchClause)])]) | ||
--> | ||
<xbgf:deyaccify>Catches</xbgf:deyaccify> | ||
|
||
<!-- | ||
- Fail: BlockStatements. | ||
- [], *(n(BlockStatement)) | ||
vs. | ||
- [], ;([n(BlockStatement), ,([n(BlockStatements), n(BlockStatement)])]) | ||
--> | ||
<xbgf:deyaccify>BlockStatements</xbgf:deyaccify> | ||
|
||
</xbgf:sequence> |
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,100 @@ | ||
<xbgf:sequence | ||
xmlns:bgf="http://planet-sl.org/bgf" | ||
xmlns:xbgf="http://planet-sl.org/xbgf"> | ||
<!-- let's complete some of the statements with a trailing semicolon--> | ||
<xbgf:vertical> | ||
<nonterminal>Statement</nonterminal> | ||
</xbgf:vertical> | ||
<xbgf:designate> | ||
<bgf:production> | ||
<label>ContinueStatement</label> | ||
<nonterminal>Statement</nonterminal> <bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>continue</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<nonterminal>Identifier</nonterminal> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:designate> | ||
<xbgf:inject> | ||
<bgf:production> | ||
<label>ContinueStatement</label> | ||
<nonterminal>Statement</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>continue</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<nonterminal>Identifier</nonterminal> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>;</terminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:inject> | ||
<xbgf:strip> | ||
<label>ContinueStatement</label> | ||
</xbgf:strip> | ||
<xbgf:designate> | ||
<bgf:production> | ||
<label>BreakStatement</label> | ||
<nonterminal>Statement</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>break</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<nonterminal>Identifier</nonterminal> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:designate> | ||
<xbgf:inject> | ||
<bgf:production> | ||
<label>BreakStatement</label> | ||
<nonterminal>Statement</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>break</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<nonterminal>Identifier</nonterminal> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>;</terminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:inject> | ||
<xbgf:strip> | ||
<label>BreakStatement</label> | ||
</xbgf:strip> | ||
|
||
</xbgf:sequence> |
Oops, something went wrong.