Skip to content

feat: add antlr-ng tool support#108

Merged
kaby76 merged 1 commit intokaby76:masterfrom
JobaDiniz:feature/antlr-ng-support
Jan 13, 2026
Merged

feat: add antlr-ng tool support#108
kaby76 merged 1 commit intokaby76:masterfrom
JobaDiniz:feature/antlr-ng-support

Conversation

@JobaDiniz
Copy link
Copy Markdown
Contributor

This PR implements #92 by adding support for antlr-ng as an alternative ANTLR tool. The implementation uses a pluggable architecture with an IAntlrTool interface, allowing users to choose between the Java-based ANTLR4 tool (default) or the Node.js-based antlr-ng tool via the <ToolType> MSBuild property. Both tools share the same configuration options and work seamlessly within the existing build pipeline, with antlr-ng providing the benefit of not requiring a Java runtime. The implementation includes automatic Node.js and antlr-ng discovery, proper C# code generation with language target auto-detection, and a complete test suite validating the integration.

Implements kaby76#92 by adding Node.js-based antlr-ng as alternative to Java ANTLR4 tool with full backward compatibility.

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: JobaDiniz <joberto.diniz@netdocuments.com>
@JobaDiniz JobaDiniz force-pushed the feature/antlr-ng-support branch from 37f1933 to d15b151 Compare January 2, 2026 17:15
@kaby76 kaby76 merged commit 428bfbf into kaby76:master Jan 13, 2026
4 checks passed
@JobaDiniz JobaDiniz deleted the feature/antlr-ng-support branch February 7, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants