Skip to content

Commit

Permalink
Backport 6c4e462b47983509cea416c001982559edf53b59
Browse files Browse the repository at this point in the history
  • Loading branch information
ktakakuri committed May 13, 2024
1 parent 6b53212 commit bf784b2
Show file tree
Hide file tree
Showing 10 changed files with 2,392 additions and 3,111 deletions.
12 changes: 6 additions & 6 deletions jdk/src/share/classes/com/sun/tools/example/debug/expr/Expr.jj
Original file line number Diff line number Diff line change
Expand Up @@ -539,10 +539,10 @@ void MultiplicativeExpression() :
}

void UnaryExpression() :
{}
{Token tok;}
{
( "+" | "-" ) UnaryExpression()
{ throw new ParseException("operation not yet supported"); }
( tok = "+" | tok = "-" ) UnaryExpression()
{ push( LValue.operation(vm, tok, pop(), frameGetter) ); }
|
PreIncrementExpression()
|
Expand All @@ -566,10 +566,10 @@ void PreDecrementExpression() :
}

void UnaryExpressionNotPlusMinus() :
{}
{Token tok;}
{
( "~" | "!" ) UnaryExpression()
{ throw new ParseException("operation not yet supported"); }
( tok = "~" | tok = "!" ) UnaryExpression()
{ push( LValue.operation(vm, tok, pop(), frameGetter) ); }
|
LOOKAHEAD( CastLookahead() )
CastExpression()
Expand Down
Loading

0 comments on commit bf784b2

Please sign in to comment.