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