This module defines the tokenizer for Ciao. In addition to optional flags, the main differences w.r.t. the ISO-Prolog standard are:
The tokenizer for Ciao extends ISO-Prolog with support for Unicode source identifiers, based on the the Unicode Standard Annex 31, as follows:
token(atom(A)) :- atm(A). token(badatom(S)) :- string(S). token(number(N)) :- num(N). token(string(S)) :- string(S). token(var(T,S)) :- term(T), string(S). token('/* ...'). token(','). token('('). token(' ('). token(')'). token('['). token(']'). token('|'). token('{'). token('}'). token('.').
Usage:read_tokens(TokenList,Dictionary)
Usage:define_flag(Flag,FlagValues,Default)