Module parser

Module parser 

Source

Functionsยง

get_cache_dir
Searches for the asm-lsp cache directory.
populate_6502_instructions
Parse the provided HTML contents and return a vector of all the instructions based on that. https://www.masswerk.at/6502/6502_instruction_set.html
populate_arm_instructions
Parse all of the ARM instruction xml files inside of docs_dir Each file is expected to correspond to part of an Instruction object
populate_avr_directives
Parse the provided XML contents and return a vector of all the directives based on that. If parsing fails, the appropriate error will be returned instead.
populate_avr_instructions
Parse the provided XML contents and return a vector of all the instructions based on that. If parsing fails, the appropriate error will be returned instead.
populate_ca65_directives
Parse the provided HTML contents and return a vector of all the directives based on that. If parsing fails, the appropriate error will be returned instead.
populate_gas_directives
Parse the provided XML contents and return a vector of all the directives based on that. If parsing fails, the appropriate error will be returned instead.
populate_instructions
Parse the provided XML contents and return a vector of all the instructions based on that. If parsing fails, the appropriate error will be returned instead.
populate_mars_pseudo_instructions
Parse all of the MARS mips pseudo-ops from the mips.txt file
populate_masm_nasm_fasm_mars_directives
Parse the provided XML contents and return a vector of all the directives based on that. If parsing fails, the appropriate error will be returned instead.
populate_mips_instructions
Parse all of the mips instruction in the mips.json file
populate_name_to_directive_map
populate_name_to_instruction_map
populate_name_to_register_map
populate_power_isa_instructions
Parse the provided JSON contents and return a vector of all the instructions based on that. https://github.com/open-power-sdk/PowerISA/blob/main/ISA.json
populate_registers
Parse the provided XML contents and return a vector of all the registers based on that. If parsing fails, the appropriate error will be returned instead.
populate_riscv_instructions
Parse all of the RISCV instruction rst files inside of docs_dir Each file is expected to correspond to part of an Instruction object
populate_riscv_registers
Parse all of the register information witin the documentation file