emustudio / edigen

Emulator Disassembler Generator
GNU General Public License v3.0
4 stars 0 forks source link

Add implicit rule support #4

Closed sulir closed 3 years ago

sulir commented 12 years ago

Rules like src_mem = mem: mem(16); are a little bit redundant. If there is a definition similar to

arith_operands =
    001 dst_reg(3) 01 src_mem(16);

and the rule src_mem does not exist, then instead of printing an error, the rule should be implicitly constructed according to the former example.

sulir commented 12 years ago

Thus, the support for variants returning subrules could probably be removed.