Parser for nested identifiers