fork download
  1. lex_by_file( FileName ) :-
  2. get_input_from_file( FileName, TokenList ),
  3. lex( TokenList, OutputList ),
  4. %write_output( OutputList ), !.
  5. maplist(writeln,OutputList),!.
  6.  
  7. %% atom_number(atom, number)
  8. a*b printf( "I" );
  9. (alb)*b printf( "2" );
  10. c* printf( "3" );
  11.  
Success #stdin #stdout #stderr 0.02s 6992KB
stdin
aaabccabbb
stdout
Standard output is empty
stderr
ERROR: /home/KqAF1k/prog:10:17: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit