Input now converted to integral syntax BEFORE lexing in order to work around issues with reserved works being recognized as valid identifiers. Much, much better now.