GithubHelp home page GithubHelp logo

Comments (2)

pirapira avatar pirapira commented on June 1, 2024 1

I see. I didn't know it's the recommendation of BuckleScript.

Anyway, I would like the build system to rebuild all dependent goals once I modify parser.mly or lexer.mll.

from bamboo.

jchavarri avatar jchavarri commented on June 1, 2024

Hey @pirapira I think this is due to the way BuckleScript handles the generated files for the parser. In #262 these generated files were removed and thus more make statements were needed because the first attempt to compile fails (as the compiler can't find these files).

The reason why I checked them in #260 is because I realized this issue, and then saw a recommendation in the official BuckleScript docs to do so:

It is quite common for programmers to use some preprocessors to generate some boilerplate code during developement.
Note preprocessors can be classified in two categories: one is system-dependent which must be delayed until running on the target machines and the other is system-independent (such as lex, yacc, m4, re2c, etc.) which could be executed anytime.
BuckleScript has built in support for conditional compilation for the second category. Since it is system-independent, we ask users to always generate such code and check it in before shipping, which would cut the dependencies for end users.

Tracking these files in git is not ideal either, but if it helps avoiding these issues in CI, then it might be worth it.

from bamboo.

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.