GithubHelp home page GithubHelp logo

Comments (4)

rsmmr avatar rsmmr commented on June 4, 2024

hilti-build goes through intermediary *.hlt files on disk. Unfortunately there are still some issues where those files end up using constructs that the subsequent read cannot parse back in. That's a mismatch between the codes for reading and writing HILTI code.

The pac-driver executable avoids this issue by doing all work just-in-time in RAM.

from hilti.

blipp avatar blipp commented on June 4, 2024

Thanks for the explanation. I'll stick with pac-driver for the moment then. I'll comment back here if this issue becomes more important for my project to ask how this can be fixed.

from hilti.

blipp avatar blipp commented on June 4, 2024

Indeed it would be important for us if this would work. Are there plans to fix these issues? Or could you please point me to the points in the code that would need to be fixed?

from hilti.

rsmmr avatar rsmmr commented on June 4, 2024

Nobody looking at that right now. The two main parts involved here are (1) the printer in hilti/passes/printer.cc (which renders an in-memory AST into HILT source code), and (2) the parser in parser/parser/parser.yy (which does the opposite :). Ideally, parsing the output of (1) with (2) would yield back the same AST; however the two don't always match up right now.

The test-suite has actually a separate mode to test this: running btest -a printer runs the tests through the print/parse cycle before executing (see comment at beginning of tests/Scripts/filter-printer). However, making this mode pass isn't enforced so far (which is a mistake) and I haven't tried/used it in a quite a while.

from hilti.

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.