Creating custom formatter for Java

This page summarizes the projects mentioned and recommended in the original post on /r/javahelp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • google-java-format

    Reformats Java source code to comply with Google Java Style.

    I spent most of my development career writing simple CRUD applications, recently I read a fascinating article: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/. It looks like a nice challenge to try creating such a tool. For sure I need first to understand how to build AST etc. I could reuse existing solutions like https://github.com/google/google-java-format, or eclipse fmt, but I would like to understand the whole process, to be able to debug all cases.

  • grammars-v4

    Grammars written for ANTLR v4; expectation that the grammars are free of actions.

    Initially, I was thinking about learning ANT and using it, but I see that they provided grammars for: java8 and java9 https://github.com/antlr/grammars-v4/tree/master/java

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • JDK

    JDK main-line development https://openjdk.org/projects/jdk

    Check out the source code for JavaDoc to see how JavaDoc does AST generation and processing, since uses the AST to generate the HTML documentation.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts