Skips over characters from the current input stream, or Stream, through the first character whith an ASCII code that match the lower 8-bits of the value of the integer expression Char.
Char may be an
integer expression. The most useful form of integer expression in
this context is the zero-quote notation, for example,
evaluates to 97, the ASCII code for the letter
a, so that
| ?- skip(0'a).
skips over (ignores) all input until the next occurrence of the letter
If Char does appear,
skip/1 will consume Char, so that
get0/1 will read the following character.
To skip to the end of the current input stream:
| ?- repeat, get0(-1), !.
Stream errors (see ref-iou-sfh-est), plus:
The portion of the input following Char is not a valid Prolog term.