Separate code parsing to a new file

Signed-off-by: Daniel Francis <francis@sugarlabs.org>