Merge pull request #396 from notoria/phrase_from_file
Implemented phrase_from_file/2 and /2
This commit is contained in:
7
src/prolog/lib/pio.pl
Normal file
7
src/prolog/lib/pio.pl
Normal 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).
|
||||
Reference in New Issue
Block a user