Commit Graph
27 Commits
Author SHA1 Message Date
RabsRincon 09b7202da9 Add minor fixes to docenizer
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!
2018-03-10 11:28:22 +01:00
Ethiraric a2a2d9911a Call self_test in docenizer. 2018-03-09 20:53:52 +01:00
Ethiraric c68f79f479 Fix parsing of last instructions. 2018-03-09 20:46:14 +01:00
Ethiraric e0a14ba1d0 Fix docenizer HTML generation. 2018-03-09 17:04:15 +01:00
Ethiraric c4f1fb4bec Fix asm-docs html generation. 2018-03-08 15:04:02 +01:00
Ethiraric b66a08cef6 Edit docenizer strip regex.
Some instruction are prefixed by "NP", and others have "EVEX.*" instead
of "VEX.*".
2018-03-08 07:48:22 +01:00
Ethiraric f4a04c7c8c Exclude parsing of some unparsable files. 2018-03-08 07:47:31 +01:00
Ethiraric 4bad4f5a5b Update docenizer with new docs format. 2018-03-06 21:07:15 +01:00
Ethiraric 0e6f003f73 asm-doc archive is now tbz2. 2018-03-06 09:43:48 +01:00
Ethiraric f250992dbf [WIP] Hacks to get around new page formatting. 2018-03-02 23:16:09 +01:00
Ethiraric c88dec2ac5 Remove only .html files when re-downloading. 2018-03-02 23:16:09 +01:00
Ethiraric 7cf8040123 Have program arguments for zip download. 2018-03-02 23:16:09 +01:00
Ethiraric d61227715d Don't copy URL with each instruction. 2018-03-02 23:16:09 +01:00
Ethiraric ee755898d7 Ensuring the docenizer produces valid URLs. 2018-03-02 23:16:09 +01:00
Ethiraric e4f3586372 Docenizer downloads archive if no input folder.
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`).
2018-03-02 23:16:09 +01:00
Ethiraric 94ed5af698 Make docenizer output linted code.
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.
2018-03-02 23:16:09 +01:00
Ethiraric 3c90d6ccb3 Fix variable shadowing in docenizer.
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.
2018-03-02 23:16:09 +01:00
Ethiraric 0a4b1d24b6 Add shebang in docenizer.py. 2018-03-02 23:16:09 +01:00
RabsRincon b2203dd737 Minor Python improvements 2018-01-24 10:17:42 +01:00
Rubén 895b66d62f Fix minor mistakes on asm-tooltip 2017-10-06 20:18:45 +02:00
Matt Godbolt d0391b2bf5 Fix missing semicolon 2017-04-08 11:14:33 -05:00
Matt Godbolt 983c6bd868 New version of docenizer (requires BeautifulSoup); fixes #362 and #365 2017-04-08 06:45:02 -05:00
Matt Godbolt ca75d5a7ea Fix exception when handling unknown opcodes 2017-04-04 07:33:33 -05:00
Rubén Rincón e8cd1a0e55 Forgot about docenizer 2017-04-03 22:29:40 +02:00
Rubén Rincón a9009978a9 Asm docs are now served by the application, using promises 2017-04-03 17:25:47 +02:00
Rubén Rincón dc35dece3d More fixes for the tokenizer 2017-03-28 16:10:09 +02:00
Rubén Rincón 49a05282c0 Moved docenizer to scripts folder 2017-03-28 15:24:17 +02:00