Merge pull request #396 from notoria/phrase_from_file

Implemented phrase_from_file/2 and /2
This commit is contained in:
Mark Thom
2020-04-25 14:17:24 -03:00
committed by GitHub
3 changed files with 80 additions and 1 deletions

7
src/prolog/lib/pio.pl Normal file
View File

@@ -0,0 +1,7 @@
:- module(pio, [phrase_from_file/2]).
:- use_module(library(dcgs)).
phrase_from_file(NT, File) :-
'$file_to_chars'(File, Chars),
phrase(NT, Chars).