Z80 ASM BNF structure… am I on the right track?
Old-school assemblers were typically hand-coded in assembler and used adhoc parsing techniques to process assembly source lines to produce actual assembler code. When assembler syntax is simple (e.g. always OPCODE REG, OPERAND) this worked well enough. Modern machines have messy, nasty instruction sets with lots of instruction variations and operands, which may be expressed with … Read more