Created
January 18, 2021 11:20
-
-
Save koo5/9d91b7fe7f325ae515dc00198d481923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:- use_module(library(plammar)). | |
:- use_module(library(pprint)). | |
:- | |
prolog_ast( | |
string( | |
"a(1)." | |
), | |
PT | |
), | |
print_term( | |
PT,[ | |
tab_width(1), | |
indent_arguments(1), | |
right_margin(200) | |
]), | |
halt. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prolog( | |
[ fact( | |
compound( | |
atom( | |
a), | |
[ integer( | |
1) | |
])) | |
]) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:- use_module(library(plammar)). | |
:- use_module(library(pprint)). | |
:- | |
prolog_ast( | |
file( | |
'cli.pl' | |
), | |
PT | |
), | |
print_term( | |
PT,[ | |
tab_width(1), | |
indent_arguments(1), | |
right_margin(200) | |
]), | |
halt. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(stuck forever) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment