Java 1.8 syntax validation cmd-line tool
Utilizes ANTLR 4 and java 8 dictionary.
How to use this?
-
Make sure you there is
git
,wget
,java
andmake
installed -
Clone the repository
git clone https://github.com/helvete/java_syntax.git
- Run make
make
- This should build the tool and package it into a
jar
file. There is also a simple wrapper script to be symlinked to a place under$PATH
. For example:
sudo ln -s /wherever/the/repository/is/cloned/run /usr/bin/java-syntax
- Use it like this
java-syntax /path/to/a/file/to/Validate.java
For more details, feel free to inspect the file itself. It's somewhat crude, but effective.