지정된 구문 요소의 다음(오른쪽) 동위 요소를 구문 분석합니다. 현재 구문 요소의 다음(오른쪽) 동위 요소가 필요할 때 브로커가 호출합니다.
정의 대상 | 유형 | 구성원 |
CPI_VFT | 필수 | iFpParseNextSibling |
void cpiParseNextSibling( CciParser* parser, CciContext* context, CciElement* currentElement);
없음
다음 예는 샘플 구문 분석기 파일 BipSampPluginParser.c에서 발췌한 것입니다(578 - 605행).
void cpiParseNextSibling( CciParser* parser, CciContext* context, CciElement* element ){ PARSER_CONTEXT_ST* pc = (PARSER_CONTEXT_ST *)context ; int rc; while ((!cpiElementCompleteNext(&rc, cpiParent(&rc, element))) && (!cpiNextSibling(&rc, element)) && (pc->iCurrentElement)) { pc->iCurrentElement = parseNextItem(parser, context, pc->iCurrentElement); } if (pc->trace) { fprintf(pc->tracefile, "PLUGIN: <- cpiParseNextSibling()\n"); fflush(pc->tracefile); } return; }