I wrote a almost full demo of instruction parser. See package "edu.syr.bytecast.amd64.impl.parserdemo".