« Previous | Next » 

Revision 6111e296

ID6111e296a8a0e115fe85f3a6b7826164aa2590c8
Parent e9aaa3c6
Child 12c19659

Added by Iustin Pop over 12 years ago

Use TemplateHaskell to build the opID function

This replaces the hand-coded opID with one automatically generated
from the constructor names, similar to the way Python does it, except
it's done at compilation time as opposed to runtime.

Again, the code line delta does not favour this patch, but this
eliminates error-prone, manual code with auto-generated one; in case
we add more opcode support, this will help a lot.

Signed-off-by: Iustin Pop <>
Reviewed-by: Agata Murawska <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences