المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : parse a sentence [modified]



C# Programming
01-23-2010, 06:40 AM
Hi all
I want to parse a sentence like:father(X,Y):-parant(X,Y),male(X).and some other sentences that the structure of these sentences are the same but they have variable length.
I want to save each segment of these sentences in a Datatable.
What is your idea about segmentation of these sentences?(I'm using text.Split, Do you have better suggestion?)
If i use split methode i must use it in several times.
Maybe you have better suggestion that i can use it easier?!

modified on Friday, January 22, 2010 3:14 AM