AndrewWPhillips / HexEdit

Binary file editor for Windows
MIT License
173 stars 62 forks source link

[request] eval tag array syntax #25

Open Tcll opened 6 years ago

Tcll commented 6 years ago

This is something I've been working on an idea for for quite a while now, and I think this would do just fine :)

instead of the ugly code I have to use python to manage:

<eval expr="CP_STRUCTS[0][0][0]=4294967295,CP_STRUCTS[0][1][0]=32,CP_STRUCTS[0][2][0]=&quot;UnsupportedStructure&quot;,CP_STRUCTS[1][0][0]=1,CP_STRUCTS[1][1][0]=1, ... " display_error="false" display_result="false" comment=""/>

here's a cleaner (hopefully multiline) syntax that should be easy enough to manage :)

<eval expr="CP_STRUCTS={
    {{4294967295},{32},{&quot;UnsupportedStructure&quot;}},
    {{1},{1}, ... },
    ...
}" display_error="false" display_result="false" comment=""/>

the idea should also work with hash-maps (python-dict inspiration)

<eval expr="HM={
    "hash": value,
    ...
}" display_error="false" display_result="false" comment=""/>