Petr Pučil
Petr Pučil
@jj7288: > I’m building an AI tool to extract wire lists from aircraft wiring diagrams and wondering if your tech can help parse schematics into structured data (CSV/JSON). It depends....
No response for two weeks - closing due to inactivity. @jj7288 If you'd like more advice on this topic, post a comment and I'll reopen the issue.
https://github.com/kaitai-io/kaitai_struct/issues/696 is related. However, it's true that even without https://github.com/kaitai-io/kaitai_struct/issues/696 the expression could be checked for at least basic errors such as references to unknown fields.
The problem is that your structure of types looks like this: ``` record_t sub_irfs_t (unused) ^ ^ | | +------+------+ | [ _parent ] | sub_120_t ^ | [ _parent...
For the record: I discovered that you cannot use `end` as an enum key for Lua, because it is a keyword. This snippet ```ksy meta: id: test_spec enums: tag: 0:...
Not at the moment, so it is unlikely to happen in the near future. See also https://github.com/kaitai-io/kaitai_struct/issues/1033#issuecomment-2003915861
Unfortunately, generics are not yet implemented, see https://github.com/kaitai-io/kaitai_struct/issues/135. If you know the set of types in advance, you can combine a parameter for selecting the inner type with type switching...
@Mingun: > But in WebIDE (both old and new) the results are one `U+FFFD` character: If you look at what bytes the `utf16_str` type actually parses by doing: ```diff types:...
@fzakaria There is a general consensus that unnamed fields should be stored, see https://github.com/kaitai-io/kaitai_struct/issues/664#issuecomment-572974197 and https://github.com/kaitai-io/kaitai_struct/issues/1064. https://github.com/kaitai-io/kaitai_struct/issues/664 actually proposes something similar to what you suggest, but only for `_unnamed` fields...
@fzakaria: > Do you have any advice? Well, if you want to make things lazy in Kaitai Struct, [instances](https://doc.kaitai.io/user_guide.html#_instances_data_beyond_the_sequence) are usually the answer. It's very likely that you can achieve...