Where's the parse.py file?

Going through the riscv instruction generation code, I found this comment in this file

// Code generated by ./parse.py -go rv64_a rv64_d rv64_f rv64_i rv64_m rv64_q rv64_zba rv64_zbb rv64_zbs rv_a rv_d rv_f rv_i rv_m rv_q rv_s rv_system rv_v rv_zba rv_zbb rv_zbs rv_zicsr; DO NOT EDIT.

However I am unable to find such a file called “parse.py” in the golang repo. Where could I find this particular program?

Probably this riscv-opcodes/parse.py at master · riscv/riscv-opcodes · GitHub

Hello!
The parse.py script you’re looking for is not located within the main golang/go repository.

Instead, this script is part of the riscv/riscv-opcodes repository on GitHub. You can find it here:

This Python script is used to parse the RISC-V opcode definitions and generate various outputs, including Go code (inst.go) that is likely used within the Go RISC-V support libraries.

Therefore, to find the parse.py program, you need to look in the riscv/riscv-opcodes repository, not the main Go repository.