Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Jastadd2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
Jastadd2
Commits
09a96649
Commit
09a96649
authored
5 years ago
by
Jesper
Browse files
Options
Downloads
Patches
Plain Diff
[parsing] Allow Java 8 array constructor references
fixes #323
parent
bae013d4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
src/javacc/jrag/Jrag.jjt
+5
-0
5 additions, 0 deletions
src/javacc/jrag/Jrag.jjt
with
10 additions
and
0 deletions
ChangeLog
+
5
−
0
View file @
09a96649
2020-05-14 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Fixed aspect parsing issue for Java 8 array constructor references.
See https://bitbucket.org/jastadd/jastadd2/issues/323/parsing-of-array-constructor-references
2019-11-29 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Deprecated some old options: lazyMaps, private, traceVisitCheck,
...
...
This diff is collapsed.
Click to expand it.
src/javacc/jrag/Jrag.jjt
+
5
−
0
View file @
09a96649
...
...
@@ -2179,6 +2179,7 @@ void PrimarySuffix() :
LOOKAHEAD(3)
"." TypeArguments() JavaIdentifier()
|
LOOKAHEAD(2)
"[" Expression() "]"
|
"." JavaIdentifier()
...
...
@@ -2190,6 +2191,10 @@ void PrimarySuffix() :
|
LOOKAHEAD(2)
"::" JavaIdentifier()
|
// Array constructor reference
LOOKAHEAD(2)
"[" "]" "::" "new"
}
void Literal() :
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment