c - How to compile VTProlog from source code? -


i student in computer science, , learning logic programming prolog.

i have found interesting prolog interpreter, vtprolog (https://github.com/johnicholas/hello-github/blob/master/prolog-in-hundreds-of-loc/vtprolog-in-c/vtprolog.pas).

to know more prolog, trying compile source code. and, got success turbo pascal 7.0, failed free pascal 2.6.4.

  • vtprolog.pas(1195,8) error: identifier not found "l"
  • vtprolog.pas(1198,30) error: identifier not found "l"
  • vtprolog.pas(1199,16) error: identifier not found "l"
  • vtprolog.pas(1203,34) error: identifier not found "l"
  • vtprolog.pas(1611) fatal: there 4 errors compiling module, stopping
  • vtprolog.pas(0) fatal: compilation aborted

is there way compile both turbo pascal 7.0 (without requirement) or free pascal 2.6.4 on windows xp?

without knowing pascal think problem part of line 1159:

procedure print_functor (* l : node_ptr *) ;

has been commented out. change to:

procedure print_functor (l : node_ptr) ;

and should compile - @ least did when tried ideone (using free pascal compiler). if program work intended can't say.