Title: Yet another a2l parser Post by: decryptor on February 20, 2025, 02:00:26 PM Hello,
Maybe someone will find this helpful. It's way too bloated, and your a2l must be STRICTLY utf8 formatted, but go ahead and throw it at a clean DB and a2l. Someone better at idapython could probably clean this up a lot, but I figured I would donate it to the greater good. I would definitely welcome PR's! However, the goal of this was to enhance the visual representation and technical data types for other uses. Basically, it pretties up the data that it marks. https://github.com/Decryptortuning/IDA_A2L Title: Re: Yet another a2l parser Post by: prj on February 20, 2025, 04:05:40 PM I'm sorry, I really don't want to put anyone down, but this is incredibly ugly - did you have access to the ASAM 2MC standard?
Also parsing the markup language is done via tokenization. You first build a high level of open tag / close tag and then build an engine on top of that with definitions of each acceptable block and it's subtypes based on the 2MC. Well, that's how I did it anyway... Title: Re: Yet another a2l parser Post by: decryptor on February 21, 2025, 02:01:20 AM Just winged it a few years back looking at an a2l. It would be much easier to use some of the existing free tool sets out there now for the parsing side and just spit out the data manipulations in Ida.
|