Simplify checking for octal literals in parser