parser.py: Adding expect_token() method
parser.py: Adding method for generating errors on expected tokens