Giter Site home page Giter Site logo

Update ANTLR version about rtamt HOT 5 CLOSED

iporres avatar iporres commented on September 16, 2024 2
Update ANTLR version

from rtamt.

Comments (5)

cirrostratus1 avatar cirrostratus1 commented on September 16, 2024

The version also interferes with other tools like hydra that also use antlr.

from rtamt.

nickovic avatar nickovic commented on September 16, 2024

The reason that we use antlr4-python3-runtime>=4.5, <4.6 in setup.py is that the parser is generated using ANTLR 4.5. If we force install the version 4.9, we get warnings "ANTLR runtime and generated code versions disagree: 4.9.3!=4.5.1".

Moreover I do not see it as a robust solution, because some other applications may require other versions of ANTLR-runtime (the version 4.10 is out and does not see to be backwards compatible). Unless there is a good argument against, I would prefer to keep the version 4.5 as the default for now.

from rtamt.

cirrostratus1 avatar cirrostratus1 commented on September 16, 2024

Is there any information regarding compatibility for antlr runtime and generated versions (I was unable to find a compatibility matrix)? If there were a more recent version that the generated version could be updated to (4.6 is from 2016) and that is compatible with multiple versions, at least some dependency conflicts with recent tools could be avoided.

from rtamt.

nickovic avatar nickovic commented on September 16, 2024

I could not find any compatibility information, but by trying different version, everything between v4.5 and 4.9 included seems to work, and 4.10 does not seem to be backwards compatible.

from rtamt.

nickovic avatar nickovic commented on September 16, 2024

As a compromise, I recompiled the parser and the lexer with ANTLR4 v4.7 (the default version in Ubuntu 18.04 LTS) and updated the setup.py accordingly. However, if one uses in the same flow two applications with ANTLR4 grammars compiled with different versions of ANTLR4, I do not see how to avoid the warning messages.

from rtamt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.