An open API service indexing awesome lists of open source software.

https://github.com/benknoble/prolog-java

Prolog parser, written in Java, to be used for style checks in prolog programs at UNC.
https://github.com/benknoble/prolog-java

java linter parser prolog stylelint

Last synced: 8 months ago
JSON representation

Prolog parser, written in Java, to be used for style checks in prolog programs at UNC.

Awesome Lists containing this project

README

          

# Prolog parser in Java

[![This project is considered experimental](https://img.shields.io/badge/status-experimental-critical.svg)](https://benknoble.github.io/status/experimental/)

For UNC Comp 524

An Prolog parser built in java using ANTLR 4 using the [pre-built
example](https://github.com/antlr/grammars-v4/blob/master/prolog/prolog.g4). The
pre-built example is licensed under the BSD license, and redistribution with
modifications are made in accordance with said license.

All other sources (that is, those excluding
`src/main/antlr4/edu/unc/cs/comp524/parsers/prolog/Prolog.g4`) are copyright
2020 UNC.

ANTLR version is **4.5.1**, not 4.8!

## About the build

Build with maven, using the ANTLR v4 plugin.

I couldn't get javadoc to generate to `docs` with a pom configuration, so:

```bash
mvn javadoc:javadoc && {
rm -r docs
cp -r target/site/apidocs docs
}
```

This can be wrapped in `git ls-files src/main/java/ | entr -cs` during
documentation development.

## Useful links about ANTLR4

- [ANLTR4 runtime API](https://javadoc.io/static/org.antlr/antlr4-runtime/4.5.1/index.html?overview-summary.html)
- [ANTLR4 4.8 documentation](https://github.com/antlr/antlr4/blob/4.8/doc/index.md)
There is some 4.5.1 documentation in Atlassian