First attempt at Parser and instruction encoder