Compiler: Added helper function find_inherited_identifier(). This function is intended to be used to reduce some of the duplicated code in language.yacc.