Giter VIP home page Giter VIP logo

Comments (7)

cdietrich avatar cdietrich commented on August 15, 2024 1

no currently not. that would need to be added.
you may check out org.eclipse.xtext.xtext.generator.parser.antlr.splitting package

from xtext.

szarnekow avatar szarnekow commented on August 15, 2024

Simon, at a first glance the language grammar doesn't look as if it should trigger such a large generated method.
Can you confirm that all the manually inserted predicates are necessary?

from xtext.

SimonCockx avatar SimonCockx commented on August 15, 2024

@szarnekow I'll give them a review.

from xtext.

SimonCockx avatar SimonCockx commented on August 15, 2024

Upon reviewing all of our syntactic predicates, I managed to remove six of them. This brings us under the limit again, but still with little margin. I'll have a look to see whether it's doable to create a fragment which can reduce the size of the specialStateTransition method as a longer term solution.

from xtext.

SimonCockx avatar SimonCockx commented on August 15, 2024

I managed to write a fragment that extracts code inside cases into separate methods if there are many cases.

See https://github.com/finos/rune-dsl/pull/805/files#diff-d952fbfc4000e8db62eb8cf802fae491dd82159fe0762c41acb726e21529e3ae

from xtext.

szarnekow avatar szarnekow commented on August 15, 2024

Do you intent to contribute this fragment? We could run it against all test languages in the Xtext repo.

from xtext.

SimonCockx avatar SimonCockx commented on August 15, 2024

With a holiday around the corner, I'm currently a bit hasty, but I suppose it can't hurt to contribute this. I'll add a reminder for once I'm back.

I suppose the same can be said about the ParserCompressorFragment2?

from xtext.

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.