Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Sep 25, 2023
1 parent 93ea068 commit 8b72bee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/like.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I like it. Anything can follow!
8 changes: 8 additions & 0 deletions samples/test_phrase_from_file.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:- use_module(library(pio)).
:- use_module(library(dcgs)).

like(What) --> "I like ", seq(What), ".", ... .

test :- phrase_from_file(like(What), 'samples/like.txt'), write_term(What,[double_quotes(true)]), nl, fail; true.

% $ tpl -g test,halt samples/test_phrase_from_file.pl

0 comments on commit 8b72bee

Please sign in to comment.