Does anyone know how to match a negative number? What I am doing is printing the lexemes with their token to an output file. But, the problem is negative numbers. It should print like this:
Instead, it prints like this:
The SUB - is technically right because the minus sign is printed this way but I want it to recognize the -1 as an INT. Any suggestions? Thank a lot.
TIRED OF PULLING MY HAIR OUT OVER SIMPLE THINGS! :mad: