Moved the parsing of parenthetic expressions to parsePrimary where it belongs.
Change ifNil to isNil, and added isNotNil.