symbol(S) --> [S]. :- initialization(main). main :- phrase(symbol(_), [a]).
1 2 10 42 11
system_error(cannot_catch_throw(error(existence_error(procedure,(:)/4),phrase/2))) GNU Prolog 1.4.5 (64 bits) Compiled Feb 5 2017, 10:30:08 with gcc By Daniel Diaz Copyright (C) 1999-2016 Daniel Diaz | ?- uncaught exception: error(syntax_error('user_input:2 (char:1) . or operator expected after expression'),read_term/3) | ?-
warning: /home/RT9ltb/prog.pl:4: user directive failed