jszheng / py3antlr4book

Covert ANTLR4 book source code to Python3 version.
415 stars 93 forks source link

Update antlr.jar #15

Open jcmuel opened 1 year ago

jcmuel commented 1 year ago

The old "antlr-4.7.2-complete.jar" creates ATN serializations that cannot be deserialized anymore with the latest antlr4 python3 runtime. The antlr runtime will show the following error message:

Exception: Could not deserialize ATN with version (expected 4).

It is necessary to upgrade to the latest antlr.jar or use the antlr4 executable that ships with the Python 3 package antlr4-python3-runtime.