Skip to content

Commit

Permalink
Experiment to run a subset
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-sankaran committed Nov 11, 2024
1 parent e265e58 commit 5cd2e25
Show file tree
Hide file tree
Showing 28 changed files with 9,536 additions and 9,500 deletions.
2 changes: 2 additions & 0 deletions org.eclipse.jdt.core.compiler.batch/grammar/java.g
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,8 @@ SwitchLabels ::= SwitchLabel ':'
/.$putCase consumeSwitchLabels(false, false) ; $break ./
SwitchLabels ::= SwitchLabels SwitchLabel ':'
/.$putCase consumeSwitchLabels(true, false) ; $break ./
SwitchLabels ::= SwitchLabels SwitchLabel CaseArrow -- to ease yield disambiguation, will be rejected.
/.$putCase consumeSwitchLabels(true, true) ; $break ./
/:$readableName SwitchLabel:/

PostCaseArrow ::= $empty
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ public interface ParserBasicInformation {
NUM_STATES = 1239,

NT_OFFSET = 138,
SCOPE_UBOUND = 320,
SCOPE_SIZE = 321,
LA_STATE_OFFSET = 18346,
SCOPE_UBOUND = 321,
SCOPE_SIZE = 322,
LA_STATE_OFFSET = 18347,
MAX_LA = 1,
NUM_RULES = 940,
NUM_RULES = 941,
NUM_TERMINALS = 138,
NUM_NON_TERMINALS = 432,
NUM_SYMBOLS = 570,
START_STATE = 1137,
START_STATE = 1138,
EOFT_SYMBOL = 39,
EOLT_SYMBOL = 39,
ACCEPT_ACTION = 18345,
ERROR_ACTION = 18346;
ACCEPT_ACTION = 18346,
ERROR_ACTION = 18347;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3306,11 +3306,14 @@ final void addTokenToLookBack(int newToken) {
case TokenNameCOLON:
if (this.lookBack[1] == TokenNamedefault)
this.atClassicSwitchLabel = true;
if (this.scanningSwitchLabel)
if (this.scanningSwitchLabel) {
System.out.println("Checking if at end of classic switch label"); //$NON-NLS-1$
if (this.activeParser == null || this.activeParser.automatonWillShift(TokenNameCaseArrow)) {
this.scanningSwitchLabel = false;
this.atClassicSwitchLabel = true;
}
System.out.println("Done Checking if at end of classic switch label"); //$NON-NLS-1$
}
break;
}
this.lookBack[0] = this.lookBack[1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int getRestrictedKeyword(String text) {
TokenNameimport = 111,
TokenNameinstanceof = 17,
TokenNameint = 112,
TokenNameinterface = 72,
TokenNameinterface = 73,
TokenNamelong = 113,
TokenNamenative = 46,
TokenNamenew = 40,
Expand Down Expand Up @@ -197,10 +197,10 @@ static int getRestrictedKeyword(String text) {
TokenNameBeginLambda = 64,
TokenNameBeginIntersectionCast = 69,
TokenNameBeginTypeArguments = 89,
TokenNameElidedSemicolonAndRightBrace = 73,
TokenNameElidedSemicolonAndRightBrace = 74,
TokenNameAT308 = 27,
TokenNameAT308DOTDOTDOT = 129,
TokenNameCaseArrow = 74,
TokenNameCaseArrow = 72,
TokenNameRestrictedIdentifierYield = 90,
TokenNameRestrictedIdentifierrecord = 76,
TokenNameRestrictedIdentifiersealed = 43,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 5cd2e25

Please sign in to comment.