Comments (4)
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.
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.
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.
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)
- Add more comparision operators for enum labels
- Add syntax to test for a range in a switch statement
- &convert in a bitfield HOT 1
- imported types : hooks not executed HOT 2
- [BinPAC++] Type of 'deref' in bytes iterator
- Use __hlt_bytes_find_bytes to translate '&until' spicy attribute ? HOT 4
- use-after-free bug on container timeout
- spicyc segmentation fault when list item type not defined
- hilti-build: Function already declared error
- tests/hilti/tuple/wrong-index.hlt segmentation fault
- tests/spicy/double/parse.spicy fails because doubles are incorrectly decoded
- tests/spicy/unit/wrong-id-3 fails because of unexpected "Aborted" message
- spicyc segmentation fault on missing argument for nested unit in list
- spicy-dump prints signed int instead of unsigned int
- UTF8 parsing problem
- Setting the %bitorder globally for the module has no effect
- Bug in SPICY match() Method :: Does Not Match Extended ASCII Characters HOT 2
- Hilti source build plugin error HOT 5
- Compiling on Debian 9 HOT 1
- Comparing an integer to an enum label always returns that they are equal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hilti.