From 9e5f640eb7c6c712f52db12d91a7d628f596496b Mon Sep 17 00:00:00 2001 From: Frotty Date: Mon, 26 Oct 2026 12:59:19 +0100 Subject: [PATCH] Use the organization-maintained AST generator --- AGENTS.md | 3 ++- de.peeeq.wurstscript/build.gradle | 4 ++-- de.peeeq.wurstscript/settings.gradle | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 30254acaa..4ef9a6b64 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,7 +36,8 @@ Inside `de.peeeq.wurstscript`: * **`parserspec/`** Contains **.parseq grammars** for `abstractsyntaxgen` - ([https://github.com/peterzeller/abstractsyntaxgen](https://github.com/peterzeller/abstractsyntaxgen)). + ([our maintained abstractsyntaxgen fork](https://github.com/wurstscript/abstractsyntaxgen), + with general fixes contributed to [upstream](https://github.com/peterzeller/abstractsyntaxgen)). These define the AST structure used by the compiler. Code is generated via the Gradle task: diff --git a/de.peeeq.wurstscript/build.gradle b/de.peeeq.wurstscript/build.gradle index 5866fc92e..f932022c5 100644 --- a/de.peeeq.wurstscript/build.gradle +++ b/de.peeeq.wurstscript/build.gradle @@ -135,8 +135,8 @@ dependencies { implementation "org.antlr:antlr4-runtime:4.13.1" // abstractsyntaxgen (available to IDE via compileOnly; used at runtime via astgen) - compileOnly 'com.github.peterzeller:abstractsyntaxgen:693dca993e' - astgen 'com.github.peterzeller:abstractsyntaxgen:693dca993e' + compileOnly 'com.github.wurstscript:abstractsyntaxgen:cc63402b30' + astgen 'com.github.wurstscript:abstractsyntaxgen:cc63402b30' // Tests diff --git a/de.peeeq.wurstscript/settings.gradle b/de.peeeq.wurstscript/settings.gradle index 5441c8ede..65008c59c 100644 --- a/de.peeeq.wurstscript/settings.gradle +++ b/de.peeeq.wurstscript/settings.gradle @@ -23,7 +23,7 @@ dependencyResolutionManagement { includeModule('com.github.inwc3', 'JMPQ3') includeModule('com.github.inwc3', 'wc3libs') includeModule('com.github.wurstscript', 'wurst-project-config') - includeModule('com.github.peterzeller', 'abstractsyntaxgen') + includeModule('com.github.wurstscript', 'abstractsyntaxgen') includeModule('com.github.peterzeller', 'java-smallcheck') } }