Yes, I'd like to help, and I've made a set of changes for JavaParser.jjt for Java 7 features which I could submit, but I guess I need permission for that, right?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On Sun, Jun 30, 2013 at 10:41 PM, pilcrow okl@users.sf.net wrote:
Yes, I'd like to help, and I've made a set of changes for JavaParser.jjt
for Java 7 features which I could submit, but I guess I need permission for
that, right?
Sorry, Java 8 is a bit too much - and not even officially out.
But I found a bug in my changes, although not allowed to submit via svn:
Index: src/main/jjtree/JavaParser.jjt
===================================================================
--- src/main/jjtree/JavaParser.jjt (Revision 108)
+++ src/main/jjtree/JavaParser.jjt (working copy)
@@ -1371,7 +1371,7 @@
void FormalParameterForCatch():
{}
{
- Type() ("|" Type()) VariableDeclaratorId()
+ Modifiers() Type() ("|" Type()) VariableDeclaratorId()
}
void ConstructorDeclaration():
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would it be easy to include Java 7 features like the diamond operator?
e.g. List<String> myList = new List<>();
yes, working on it, should be available soon
let me know if you want to lend a hand
Yes, I'd like to help, and I've made a set of changes for JavaParser.jjt for Java 7 features which I could submit, but I guess I need permission for that, right?
cool, you could upload the Files if you like and I can integrate. You'll
get full credit of course.
I'll look at enabling dev access later in the week if that's Ok for you.
Also, long term I'm looking at using JParsec instead of Javacc. This is
just an experiment really, JParsec might be more flexible going forward.
We're having to make changes to JParsec to support it though, check out the
discussion on github:-
https://github.com/abailly/jparsec/issues/5
https://github.com/abailly/jparsec/pull/7
Jason
On Sun, Jun 30, 2013 at 10:41 PM, pilcrow okl@users.sf.net wrote:
here's the new file ...
here's another version that includes support for underscores in decimal and hexadecimal floats. This should now cover all Java 7 features.
Cool, tried it on the JDK 7 Source code, worked with no problems, checked in.
How about updating to Support Java 8 ? :-)
Sorry, Java 8 is a bit too much - and not even officially out.
But I found a bug in my changes, although not allowed to submit via svn:
Index: src/main/jjtree/JavaParser.jjt
===================================================================
--- src/main/jjtree/JavaParser.jjt (Revision 108)
+++ src/main/jjtree/JavaParser.jjt (working copy)
@@ -1371,7 +1371,7 @@
void FormalParameterForCatch():
{}
{
- Type() ("|" Type()) VariableDeclaratorId()
+ Modifiers() Type() ("|" Type()) VariableDeclaratorId()
}
void ConstructorDeclaration():