facebookarchive / pfff

Tools for code analysis, visualizations, or style-preserving source transformation.
http://github.com/facebook/pfff/wiki/Main
Other
2.44k stars 204 forks source link

Support for Java 8 #109

Open ignoramous opened 9 years ago

ignoramous commented 9 years ago

Opening a bug as a request for someone to pick up Java 8 support for pfff.

aryx commented 9 years ago

which feature? can you give example of code that currently does not work with pfff?

ignoramous commented 9 years ago

For instance, pfff would now start having to recognize new language constructs like Optionals, Lambda Expressions (and new accessors like, ArrayList::new instead of typing new ArrayList()).

http://docs.oracle.com/javase/8/docs/api/java/util/Optional.html

Also, wouldn't addition of Streams, Functional Interfaces / Utils etc to std-lib need changes? Thx.

Ref: https://www.techempower.com/blog/2013/03/26/everything-about-java-8/

Curious to know if antlr also belongs in the "related work" segment of pfff wiki's main page? http://www.antlr.org/about.html

aryx commented 9 years ago

I see. I don't have much time those days so I have no idea when someone will implement this.

Regarding antlr no it's not really related to Pfff itself. Antlr is a compiler-compiler technology, like yacc. Pfff uses yacc but could use antlr to parse programming languages.

ghost commented 9 years ago

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.