I don't think this is the right approach. Octals can be used in many places, not just in variable declarations. It would be a better idea to what for "Literal" and then apply the same logic.