regard characters after complete expression as syntax error; fixes #1