* Update docenizer to python3
* Remove unused code in docenizer
* Create new asm-docs-arm and asm-docs-api-arm files for parsing and retrieving arm related opcodes. Add conditional instruction switch.
* Rename docs files to specify instruction set
* Add arm32 at /api/asm/arm32/:opcode
* Add @jovere to contributor list
* Add `instructionSet` compiler option
* Update client to access correct instruction based on the `instructionSet` option
* Add `arm32` `instructionSet` option for ARM C++ compilers
* Add `arm32` instructionSet to obvious places in C/C++
The docenizer script is ran manually every time we update the docs,
so we can modify it while a fix lands on the Intel manual,
and then Felix updates the page.
We'll just have to remember to check the fix before updating the docs
Fixes#2380
This does not change the output, but makes it more robust against
different kinds of outputs/initial states.
Thanks again to @Ethiraric for all the effort that went into this!
The docenizer will now download and extract the archive if no input
folder is specified. The extraction directory is currently hardcoded
into a variable (`ASMDOC_DIR`).
This is more a hack than anything else on the json generation.
The output from the docenizer on my machine is very different from the
already existed generated code.
The following changes were made:
* Add 4 more spaces before the `case` and `return` statements.
* Indent by default the json by 16 spaces. Since there is only one
depth level, this effectively prefixes by 16 spaces all fields.
* Replace json separators to remove trailing spaces.
* Replace the last '}' of the json by a 12-spaces-indented line.
The variable `name` was used incorrectly at several points in the
`parse` method. This results in the filename being overwritten by
instruction names and the function assigning wrong URLs.
I have removed the shadowing and explicited the different name
variables.