private void CheckIdentifierDuplicate(Token identToken) { if (_symStack.ContainIdent(identToken.Value)) { throw new Exception(string.Format("({0}, {1}) semantic error: duplicate identifier '{2}'", identToken.Line, identToken.Column, identToken.Lexeme)); } }