Listing 9 Function PdialogStatement::parse()

BOOL PdialogStatement::parse()
{
 BOOL result;
 Token * pTemp;
 
 pTemp = gpTokenizer->getToken();  // get a new token

 switch (pTemp->tokentype)
 {
       .
       .
 case tkedit:
      Pedit * pMyEdit = new Pedit;  // create a edit parse node
      PARSE(pMyEdit)  // call the parse function
      break;
 case tklistbox:
      PlistBox * pMyListBox = new PlistBox;
      PARSE(pMyListBox)
      break;
       .
       .
 default:result = FALSE;
          break;
 }  // end of switch
 return result;
}
// End of File