Pages: [1]
Author Topic: Yet another a2l parser  (Read 793 times)
decryptor
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


« 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
Logged
prj
Hero Member
*****

Karma: +1093/-512
Offline Offline

Posts: 6162


« Reply #1 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...

Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
decryptor
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #2 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.073 seconds with 18 queries. (Pretty URLs adds 0.001s, 0q)