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].
library(mavis)
.~
), which consumes no arguments, has Types=[]
. For example,
?- action_types(0'~, Types). Types = []. ?- action_types(0'a, Types). Types = [atom].