Giter Site home page Giter Site logo

Comments (10)

matklad avatar matklad commented on August 17, 2024 3

There's https://github.com/hurricup/gradle-grammar-kit-plugin now 🎉

from intellij-platform-gradle-plugin.

sjamesr avatar sjamesr commented on August 17, 2024 1

@zolotov it would be nice to be able to run the GrammarKit parser generator as part of continuous integration (without having to check in the generated files). Apparently there are already plugins to use JFlex from Gradle, so that could be outside the scope of this plugin.

from intellij-platform-gradle-plugin.

matklad avatar matklad commented on August 17, 2024 1

Here is how we execute Jflex and Grammar Kit as a part of build of intellij-rust.

Unfortunately Grammar Kit is not published on maven, so we have to commit grammar-kit.jar to the repository.

An important peculiarity is that Grammar Kit needs classes from IntelliJ platform, that's why we use compile classpath for the generate task.

from intellij-platform-gradle-plugin.

zolotov avatar zolotov commented on August 17, 2024

If I implemented it in plugin, you still needed to configure bnf and flex files. I don't think that it will be shorter than creating generate tasks on client's side.

from intellij-platform-gradle-plugin.

iviews-ja avatar iviews-ja commented on August 17, 2024

I see. For me it would be faster to use configure two files instead of googling and experimenting how to tell gradle to generate source code from the grammar and to tell jflex to generate the lexer code. As you can see I have no idea of gradle but love the plugin build automation :)
Close the issue if you think it should be solved by plugin authors...

from intellij-platform-gradle-plugin.

zolotov avatar zolotov commented on August 17, 2024

Ok, thanks. I'll think about it

from intellij-platform-gradle-plugin.

Turbo87 avatar Turbo87 commented on August 17, 2024

I guess it would not be a bad idea to have support for Grammar-Kit in some plugin, but I don't think it should be this plugin. It's easy to use multiple plugins in Gradle and having a dedicated Grammar-Kit plugin sounds like a good idea also for use-cases outside of IntelliJ plugins.

from intellij-platform-gradle-plugin.

zolotov avatar zolotov commented on August 17, 2024

@sjamesr indeed, I still think that it could be part of some other plugin.

from intellij-platform-gradle-plugin.

mplushnikov avatar mplushnikov commented on August 17, 2024

+1 for this functionality.
I is very annoying to figure out how to setup multiple gradle task to generate Parser and Lexer classes

from intellij-platform-gradle-plugin.

jonnyzzz avatar jonnyzzz commented on August 17, 2024

Running a grammar kit from gradle (maybe as additional plugin) looks good to make it easier to bootstrap a new plugin
+1

from intellij-platform-gradle-plugin.

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.