src/Generic/parse/ParseNode.cpp
//added for error checking in arabic parser

added for error checking in arabic parser
added for error checking in arabic parser
wstring ParseNode::readLeaves(){
    if (headNode == 0) {
        return wstring(label.to_string());
	}
	else{
		wstring result;
		getPremodLeaves(premods, result);
		result += headNode->readLeaves();
		getPostmodLeaves(postmods, result);
		return result;
	}
}
wstring ParseNode :: readLeaves ( ) { if ( headNode == 0 ) { return wstring ( label . to_string ( ) ) ; } else { wstring result ; getPremodLeaves ( premods , result ) ; result += headNode -> readLeaves ( ) ; getPostmodLeaves ( postmods , result ) ; return result ; } }
added for error checking in arabic parser
added for error checking in arabic parser