| 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].
format_spec(+Format, -Spec:list) is det
format_spec(-Spec)// is det
format_types(+Format:text, -Types:list) is det