grammars-v4
grammars-v4 copied to clipboard
java.lang.ClassNotFoundException: NASMLexer
trafficstars
running mvn test gives [INFO] --- antlr4test:1.22:test (default) @ nasm --- [INFO] Evaluating Scenario: Default Scenario java.lang.ClassNotFoundException: NASMLexer at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
Looks like the pom.xml is not correct. Here is the fix.
$ git diff .
diff --git a/asm/nasm/pom.xml b/asm/nasm/pom.xml
index c2c913f7..b4944dcf 100644
--- a/asm/nasm/pom.xml
+++ b/asm/nasm/pom.xml
@@ -39,8 +39,8 @@
<configuration>
<verbose>false</verbose>
<showTree>false</showTree>
- <entryPoint>compilationUnit</entryPoint>
- <grammarName>NASM</grammarName>
+ <entryPoint>program</entryPoint>
+ <grammarName>nasm_x86_64_</grammarName>
<exampleFiles>examples/</exampleFiles>
</configuration>
<executions>
11/15-07:34:16 ~/issues/current-grammars/asm/nasm