Skip to content

Commit

Permalink
removed illegal and confusing disambiguation constructs that are not …
Browse files Browse the repository at this point in the history
…working anyway from Java grammar
  • Loading branch information
jurgenvinju committed Mar 15, 2024
1 parent 462043e commit 60afaff
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/org/rascalmpl/library/lang/java/syntax/Java18.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ lexical Comment =

syntax FloatingPointLiteral =
float: HexaFloatLiteral !>> [D F d f]
| float: DeciFloatLiteral \ DeciFloatLiteralKeywords !>> [D F d f]
| float: DeciFloatLiteral !>> [D F d f]
;

lexical OctaLiteral =
Expand Down Expand Up @@ -1028,10 +1028,6 @@ lexical CommentPart

syntax Identifier = id: [$ A-Z _ a-z] !<< ID \ IDKeywords !>> [$ 0-9 A-Z _ a-z];

keyword ArrayAccessKeywords =
ArrayCreationExpression ArrayAccess
;

syntax BooleanLiteral
= \false: "false"
| \true: "true"
Expand All @@ -1041,10 +1037,6 @@ lexical DeciFloatExponentPart =
[E e] SignedInteger !>> [0-9]
;

keyword DeciFloatLiteralKeywords =
[0-9]+
;

keyword DeciFloatDigitsKeywords =
"."
;
Expand Down

0 comments on commit 60afaff

Please sign in to comment.