Update parser.cpp

FIX: signed/unsigned mismatch warning
FIX: invalid escape sequence warning
This should compile with no warnings now.