Did you know ... | Search Documentation: |
prolog_format.pl -- Analyse format specifications |
This library parses the format specification used by format/1, format/2 and format/3. The parsed specification can be used to validate the consistency of the format string and the provided arguments. For example:
?- format_types('~d bottles of beer', Types). Types = [integer].