Major update:
added parsing_globals instead of using global parameters, making
functions more portable.
fixed most parsing functions to use it
fixed lang.h to include the instruction type #defines
still need to update parse.h with correct headers.