Skip to content

update to ANTLR 4.13.2#36

Merged
ottobackwards merged 1 commit intopalindromicity:masterfrom
daersc:master
Apr 18, 2025
Merged

update to ANTLR 4.13.2#36
ottobackwards merged 1 commit intopalindromicity:masterfrom
daersc:master

Conversation

@daersc
Copy link

@daersc daersc commented Apr 17, 2025

The Files generated with ANTLR 4.7.2 cannot be used with later versions of ANTLR (starting with version 4.10).

See ANTLR 4.10 Release Notes:

ANTLR not only generates recursive-descent parsers; it generates a state machine called an augmented transition network (ATN) in serialized form as a bunch of integers stored in the generated parser and lexer files. This serialization format was changed for 4.10 to remove a size limit on the supported ATNs. See antlr/antlr4#3591.

The key point here is that we changed the version number stored inside the serialization format and so, in order to use this new version of ANTLR, you must regenerate all of your lexers and parsers using the 4.10 tool and then use the new runtime. Parsers generated with 4.10 or not compatible with previous versions of the runtime.

Solution: Update ANTLR version and re-generate sources.

@ottobackwards
Copy link
Contributor

Thank you! I'll merge and do a release

@ottobackwards ottobackwards merged commit 4d0c7a7 into palindromicity:master Apr 18, 2025
@ottobackwards
Copy link
Contributor

<dependency>
    <groupId>com.github.palindromicity</groupId>
    <artifactId>simple-syslog-5424</artifactId>
    <version>0.0.18</version>
</dependency>

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