adamjstewart / prolog

An implementation of Prolog written in OCaml
MIT License
2 stars 3 forks source link

Command-line interpreters for lexer and parser #5

Open adamjstewart opened 6 years ago

adamjstewart commented 6 years ago

For demonstration purposes, it would be nice to have command-line interpreters for the lexer and parser so we can interactively demo them.

ZaidQureshi commented 6 years ago

Yes, be my guest to make it. It should be very similar to the already existing interpreter, except for the fact that instead of calling eval_dec you print the input. Or you can even print this in the current interpretor.