test if the left parenthesis (in
last
) in fact matches the right parenthesis just read (which is now in
currentchar
)
if(!match (last,currentchar))