Simplify numeric literal parser and add code comments.