Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 910 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 910 Bytes

java_syntax

Java 1.8 syntax validation cmd-line tool

Utilizes ANTLR 4 and java 8 dictionary.

How to use this?

  1. Make sure you there is git, wget, java and make installed

  2. Clone the repository

git clone https://github.com/helvete/java_syntax.git
  1. Run make
make
  1. This should build the tool and package it into a jarfile. 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
  1. 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.