Skip to content

Commit

Permalink
more tagging work
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@386 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Oct 29, 2008
1 parent 22fc862 commit f5bc5d8
Show file tree
Hide file tree
Showing 13 changed files with 167 additions and 62 deletions.
30 changes: 17 additions & 13 deletions topics/java/lci/java-lci.csproj
Expand Up @@ -52,7 +52,6 @@
<Link>xbgf.xsd</Link>
</None>
<None Include="java.lcf" />
<None Include="xbgf\allowMethodBodyEmpty.xbgf" />
<None Include="xbgf\correct-app1.xbgf" />
<None Include="xbgf\correct-app2.xbgf" />
<None Include="xbgf\correct-app3.xbgf" />
Expand All @@ -61,40 +60,45 @@
<None Include="xbgf\correct-doc3.xbgf" />
<None Include="xbgf\deyaccify-doc2.xbgf" />
<None Include="xbgf\edit-doc1.xbgf" />
<None Include="xbgf\edit-doc2.xbgf" />
<None Include="xbgf\edit-doc3.xbgf" />
<None Include="xbgf\editDeclarations.xbgf" />
<None Include="xbgf\editExpressions-doc2.xbgf" />
<None Include="xbgf\editExpressions-doc3.xbgf" />
<None Include="xbgf\editExpressions-jls1.xbgf" />
<None Include="xbgf\editExpressions.xbgf" />
<None Include="xbgf\eliminate-doc2.xbgf" />
<None Include="xbgf\extend-doc1.xbgf" />
<None Include="xbgf\extend-doc12.xbgf" />
<None Include="xbgf\extend-doc2.xbgf" />
<None Include="xbgf\extend-doc3.xbgf" />
<None Include="xbgf\extend-jls1.xbgf" />
<None Include="xbgf\extend-jls2.xbgf" />
<None Include="xbgf\extendModifiers.xbgf" />
<None Include="xbgf\generalize-app3.xbgf" />
<None Include="xbgf\generalize-jls1.xbgf" />
<None Include="xbgf\generalizeBlock.xbgf" />
<None Include="xbgf\generalizeLabels.xbgf" />
<None Include="xbgf\generalizeModifiers-doc1.xbgf" />
<None Include="xbgf\generalizeModifiers.xbgf" />
<None Include="xbgf\generalizeNames-doc1.xbgf" />
<None Include="xbgf\generalizeNames.xbgf" />
<None Include="xbgf\generalizeStatements.xbgf" />
<None Include="xbgf\inline-jls2.xbgf" />
<None Include="xbgf\inlineStatements.xbgf" />
<None Include="xbgf\prefer3.xbgf" />
<None Include="xbgf\preferLALR.xbgf" />
<None Include="xbgf\prepare1.xbgf" />
<None Include="xbgf\prepare2.xbgf" />
<None Include="xbgf\prepare3.xbgf" />
<None Include="xbgf\refactor-app1.xbgf" />
<None Include="xbgf\refactor-app2.xbgf" />
<None Include="xbgf\refactor-app3.xbgf" />
<None Include="xbgf\refactor-doc1.xbgf" />
<None Include="xbgf\refactorClasses-doc2.xbgf" />
<None Include="xbgf\refactorClasses-doc3.xbgf" />
<None Include="xbgf\refactorDeclarations-doc2.xbgf" />
<None Include="xbgf\refactorDeclarations-doc3.xbgf" />
<None Include="xbgf\refactorEnumDeclarations.xbgf" />
<None Include="xbgf\refactorExpressions-doc2.xbgf" />
<None Include="xbgf\refactorEnums.xbgf" />
<None Include="xbgf\refactorExpressions-doc3.xbgf" />
<None Include="xbgf\refactorExpressions.xbgf" />
<None Include="xbgf\refactorInterfaces-doc2.xbgf" />
<None Include="xbgf\refactorInterfaces-doc3.xbgf" />
<None Include="xbgf\refactorOps.xbgf" />
<None Include="xbgf\refactorStatements.xbgf" />
<None Include="xbgf\refactorTypes-doc2.xbgf" />
<None Include="xbgf\refactorTypes-doc3.xbgf" />
<None Include="xbgf\refactorTypes-jls1.xbgf" />
<None Include="xbgf\rename-jls2.xbgf" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions topics/java/lci/java.lcf
Expand Up @@ -126,7 +126,7 @@
<perform>refactorClasses-doc2</perform>
<perform>refactorInterfaces-doc2</perform>
<perform>refactorDeclarations-doc2</perform>
<perform>extend-doc2</perform>
<perform>edit-doc2</perform>
</branch>
</target>

Expand Down Expand Up @@ -155,7 +155,7 @@
<perform>refactorInterfaces-doc3</perform>
<perform>refactorEnums</perform>
<perform>refactorDeclarations-doc3</perform>
<perform>extend-doc3</perform>
<perform>edit-doc3</perform>
</branch>
</target>

Expand Down
7 changes: 3 additions & 4 deletions topics/java/lci/xbgf/correct-app1.xbgf
Expand Up @@ -2,14 +2,13 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE CORRECT
in the extracted version root is undefined -->
<!-- in the extracted version root is undefined -->
<xbgf:reroot>
<root>CompilationUnit</root>
</xbgf:reroot>

<!-- ISSUE CORRECT
not used in other versions -->
<!-- not used in other versions -->
<!-- NONISS -->
<xbgf:eliminate>Goal</xbgf:eliminate>

</xbgf:sequence>
6 changes: 2 additions & 4 deletions topics/java/lci/xbgf/correct-app2.xbgf
Expand Up @@ -2,8 +2,7 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE CORRECT
in the extracted version root is undefined -->
<!-- in the extracted version root is undefined -->
<xbgf:reroot>
<root>CompilationUnit</root>
</xbgf:reroot>
Expand Down Expand Up @@ -221,8 +220,7 @@
<xbgf:eliminate>VoidMethodDeclaratorRest</xbgf:eliminate>
<xbgf:eliminate>VariableDeclaratorsRest</xbgf:eliminate>

<!-- ISSUE CORRECT SPECERROR
undefine lexical term -->
<!-- undefine lexical term -->
<xbgf:undefine>Identifier</xbgf:undefine>

</xbgf:sequence>
7 changes: 3 additions & 4 deletions topics/java/lci/xbgf/correct-app3.xbgf
Expand Up @@ -2,8 +2,7 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE CORRECT
in the extracted version root is undefined -->
<!-- in the extracted version root is undefined -->
<xbgf:reroot>
<root>CompilationUnit</root>
</xbgf:reroot>
Expand All @@ -19,7 +18,7 @@ Annotation:
<to>QualifiedIdentifier</to>
</xbgf:unite>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
The extractor can't tell if {} are terminals or BNF

- Fail: Block.
Expand Down Expand Up @@ -47,7 +46,7 @@ Annotation:
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
- Fail: AnnotationTypeBody.
- [], *(?(n(AnnotationTypeElementDeclarations)))
vs.
Expand Down
3 changes: 1 addition & 2 deletions topics/java/lci/xbgf/correct-doc1.xbgf
Expand Up @@ -2,8 +2,7 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE CORRECT
in the extracted version root is undefined -->
<!-- in the extracted version root is undefined -->
<xbgf:reroot>
<root>CompilationUnit</root>
</xbgf:reroot>
Expand Down
17 changes: 8 additions & 9 deletions topics/java/lci/xbgf/correct-doc2.xbgf
Expand Up @@ -2,8 +2,7 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE CORRECT
in the extracted version root is undefined -->
<!-- in the extracted version root is undefined -->
<xbgf:reroot>
<root>CompilationUnit</root>
</xbgf:reroot>
Expand All @@ -28,7 +27,7 @@
<to>Identifier</to>
</xbgf:unite>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
Error in markup of JLS2
- Fail: InterfaceBody.
- [], ,([t({), ?(n(InterfaceMemberDeclarations)), t(})])
Expand Down Expand Up @@ -59,7 +58,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
Error in markup of JLS2
- Fail: ClassBody.
- [], ,([t({), ?(n(ClassBodyDeclarations)), t(})])
Expand Down Expand Up @@ -90,7 +89,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
Error in markup in JLS2

- Fail: ConstructorBody.
Expand Down Expand Up @@ -127,7 +126,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
- Fail: Block.
- [], ,([t({), ?(n(BlockStatements)), t(})])
vs.
Expand Down Expand Up @@ -157,7 +156,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
- Fail: SwitchBlock.
- [], ,([t({), ?(n(SwitchBlockStatementGroups)), ?(n(SwitchLabels)), t(})])
vs.
Expand Down Expand Up @@ -194,7 +193,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
- Fail: ConstructorBody.
- [], ,([t({), ?(n(ExplicitConstructorInvocation)), ?(n(BlockStatements)), t(})])
vs.
Expand Down Expand Up @@ -259,7 +258,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
Error in PrimaryNoNewArray undetected by the extractor due to lacking definition -->
<xbgf:replace>
<bgf:expression>
Expand Down
9 changes: 4 additions & 5 deletions topics/java/lci/xbgf/correct-doc3.xbgf
Expand Up @@ -2,8 +2,7 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE CORRECT
in the extracted version root is undefined -->
<!-- in the extracted version root is undefined -->
<xbgf:reroot>
<root>CompilationUnit</root>
</xbgf:reroot>
Expand Down Expand Up @@ -111,7 +110,7 @@
<to>Identifier</to>
</xbgf:unite>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
Bad layout makes the extractor to force line continuation:
- Fail: NormalInterfaceDeclaration.
- [], ,([?(n(InterfaceModifiers)), t(interface), n(Identifier), ?(n(ExtendsInterfaces)), n(InterfaceBody)])
Expand Down Expand Up @@ -356,7 +355,7 @@
</xbgf:remove>
<xbgf:horizontal>TypeName</xbgf:horizontal>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
Extractor error:
- Fail: ElementValueArrayInitializer.
- [], ,([t({), ?(n(ElementValues)), ?(t((,))), t(})])
Expand Down Expand Up @@ -394,7 +393,7 @@
</bgf:production>
</xbgf:define>

<!-- ISSUE CORRECT EXTRACTERROR
<!-- ISSUE EXTRACTERROR
extractor's problem -->
<xbgf:replace>
<bgf:expression>
Expand Down
Expand Up @@ -17,7 +17,7 @@
<xbgf:eliminate>ExplicitConstructorInvocation</xbgf:eliminate>
<xbgf:eliminate>ArgumentList</xbgf:eliminate>

<!-- ISSUE EXTEND
<!-- ISSUE REFACTOR GENERALIZE
Some productions use a more general QualifiedIdentifierList instead of TypeList
-->
<xbgf:introduce>
Expand Down Expand Up @@ -46,8 +46,6 @@
</bgf:expression>
</bgf:production>
</xbgf:introduce>

<!-- ISSUE REFACTOR GENERALIZE -->
<xbgf:replace>
<bgf:expression>
<nonterminal>TypeList</nonterminal>
Expand Down Expand Up @@ -93,7 +91,7 @@
</in>
</xbgf:replace>

<!-- ISSUE EXTEND GENERALIZE
<!-- ISSUE REFACTOR BRUTAL?
- Fail: MethodDeclaratorRest.
- [], ,([n(FormalParameters), n(BracketsOpt), ?(,([t(throws), n(QualifiedIdentifierList)])), ;([n(MethodBody), t((;))])])
vs.
Expand Down
Expand Up @@ -2,7 +2,7 @@
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">

<!-- ISSUE EXTEND GENERALIZE
<!-- ISSUE REFACTOR BRUTAL? GENERALIZE
NOT semantic-preserving in any way.

- Fail: MethodBody.
Expand All @@ -22,7 +22,7 @@
</bgf:production>
</xbgf:remove>

<!-- ISSUE EXTEND
<!-- ISSUE REFACTOR BRUTAL - somehow NonWildcardTypeArguments was used anyway
- Fail: Primary.
- [], ,([n(NonWildcardTypeArguments), ;([n(ExplicitGenericInvocationSuffix), ,([t(this), n(Arguments)])])])
vs.
Expand Down
2 changes: 1 addition & 1 deletion topics/java/lci/xbgf/editExpressions.xbgf
Expand Up @@ -45,7 +45,7 @@
<nonterminal>Primary</nonterminal>
</xbgf:vertical>

<!-- ISSUE EXTEND
<!-- ISSUE CORRECT
- Fail: Primary.
- [], ,([t(this), ?(n(Arguments))])
vs.
Expand Down

0 comments on commit f5bc5d8

Please sign in to comment.