I'm using antlr4 on mac os, I installed it following the getting started documentation on github https://github.com/antlr/antlr4/blob/master/doc/getting-started.md.
The testing works fine, but when enter any of these commands:
$ grun grammar rule –gui
$ grun grammar rule –tree
$ grun grammar rule –tokens
It shows this error:
Exception in thread "main" java.nio.file.NoSuchFileException: –gui
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
at java.base/java.nio.file.Files.readAttributes(Files.java:1755)
at java.base/java.nio.file.Files.size(Files.java:2369)
at org.antlr.v4.runtime.CharStreams.fromPath(CharStreams.java:86)
at org.antlr.v4.gui.TestRig.process(TestRig.java:162)
at org.antlr.v4.gui.TestRig.main(TestRig.java:119)
What could be the problem?