i try to parse a file using prolog. I have found on web that the best way for do it is use DCG and "pio" library, in particular many people suggest use phrase_from_file but i have not understood how it work. someone can help me? thanks!
Asked
Active
Viewed 286 times
0
-
What is the exact problem? – Oct 11 '13 at 13:05
-
See the following answers: http://stackoverflow.com/search?q=pio++[prolog] – false Oct 11 '13 at 15:03
-
the problem is that i don't understand how phrase_from_file work!! – Stefano Oct 11 '13 at 17:48
-
Read http://stackoverflow.com/questions/8231754/reading-a-file-in-prolog/8232063#8232063 – false Oct 11 '13 at 18:52