fork download
  1. symbol(S) --> [S].
  2.  
  3.  
  4. :- initialization(main).
  5. main :-
  6. phrase(symbol(_), [a]).
Success #stdin #stdout #stderr 0s 4396KB
stdin
1
2
10
42
11
stdout
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)
| ?- 
stderr
warning: /home/RT9ltb/prog.pl:4: user directive failed