File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -74,5 +74,5 @@ Check whether a sample Java source fits within the grammar without expressions:
7474- whether it does not contain rules outside the grammar
7575
7676``` sh
77- ./bazel-bin/fits-grammar-noexpr resources/AllRulesWithoutExpr .java
77+ ./bazel-bin/fits-grammar-noexpr resources/C .java
7878```
Original file line number Diff line number Diff line change 11package p ;
2- import java .util .List ;
32import java .util .*;
3+ import java .util .List ;
44import static java .lang .Math .log ;
55import static java .lang .Math .*;
6- public abstract class AllRulesWithoutExpr <T > extends Object implements RandomAccess {
6+ public abstract class C <T > extends Object
7+ implements RandomAccess {
78 private interface I extends Formattable {
89 public int [][] a = {{}, {}};
9- abstract <E extends Formattable > void m () throws Exception ;
10+ abstract <E extends Formattable >
11+ void m () throws Exception ;
1012 }
1113 enum E { E1 (); }
1214 static {}
1315 {}
1416 public List <? extends T >[][] b ;
15- public AllRulesWithoutExpr (float a , String b ) { this (); }
16- public AllRulesWithoutExpr () {
17+ public C (float a , String b ) { this (); }
18+ public C () {
1719 l : ;
1820 for (int i ;;) { break ; }
1921 for (int i ;;) { continue ; }
2022 }
21- private <A extends Collection <T > & Formattable > void n (AllRulesWithoutExpr <T > this ) {
23+ private <A extends C <T > & Formattable >
24+ void n (C <T > this ) {
2225 final List <int []> v ;
2326 try {} catch (Exception e ) {} finally {}
2427 return ;
You can’t perform that action at this time.
0 commit comments