correction Parser

This commit is contained in:
trochas
2025-02-13 14:20:38 +01:00
parent 094f978e06
commit c8ef104d69
4 changed files with 6 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{ {
"java.server.launchMode": "Standard", "java.server.launchMode": "Standard",
"java.gradle.buildServer.enabled": "on", "java.gradle.buildServer.enabled": "on",
"java.jdt.ls.java.home": "/usr/lib/jvm/jdk-21.0.6-oracle-x64", "java.jdt.ls.java.home": "C:/Program Files/Java/jdk-21",
"antlr4.generation": { "antlr4.generation": {
"mode": "none" // Don't generate source file with the antlr4-vscode extension "mode": "none" // Don't generate source file with the antlr4-vscode extension
}, },

View File

@@ -15,6 +15,9 @@ dependencies {
java { java {
sourceCompatibility = "1.21" sourceCompatibility = "1.21"
targetCompatibility = "1.21" targetCompatibility = "1.21"
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
} }
generateGrammarSource { generateGrammarSource {

View File

@@ -27,7 +27,7 @@ bloc : sujet listvc P
; ;
sujet : LC entity RC sujet : LC entity RC
; ;
listvc : LC vc RC more // caca listvc : vc more
; ;
more : SEMI listvc more : SEMI listvc
| |

View File

@@ -58,7 +58,7 @@ public class Main {
* *
* @param args standard arguments passed on the commandline * @param args standard arguments passed on the commandline
* @throws //RecognitionException * @throws //RecognitionException
**/ **/
public static void antlrAST(String[] args) throws RecognitionException { public static void antlrAST(String[] args) throws RecognitionException {
try { try {