cw4: Refactor tokenization into assembler