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.
- Host: GitHub
- URL: https://github.com/benknoble/prolog-java
- Owner: benknoble
- Created: 2020-08-27T18:00:13.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-11-28T21:49:36.000Z (over 5 years ago)
- Last Synced: 2025-01-02T10:25:42.671Z (over 1 year ago)
- Topics: java, linter, parser, prolog, stylelint
- Language: Java
- Homepage: https://benknoble.github.io/prolog-java/
- Size: 856 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prolog parser in Java
[](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