correction Parser
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"java.server.launchMode": "Standard",
|
||||
"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": {
|
||||
"mode": "none" // Don't generate source file with the antlr4-vscode extension
|
||||
},
|
||||
|
||||
@@ -15,6 +15,9 @@ dependencies {
|
||||
java {
|
||||
sourceCompatibility = "1.21"
|
||||
targetCompatibility = "1.21"
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
}
|
||||
|
||||
generateGrammarSource {
|
||||
|
||||
@@ -27,7 +27,7 @@ bloc : sujet listvc P
|
||||
;
|
||||
sujet : LC entity RC
|
||||
;
|
||||
listvc : LC vc RC more // caca
|
||||
listvc : vc more
|
||||
;
|
||||
more : SEMI listvc
|
||||
|
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Main {
|
||||
*
|
||||
* @param args standard arguments passed on the commandline
|
||||
* @throws //RecognitionException
|
||||
**/
|
||||
**/
|
||||
public static void antlrAST(String[] args) throws RecognitionException {
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user