marcpaq / b1fipl

A Bestiary of Single-File Implementations of Programming Languages
995 stars 38 forks source link

Proposal to add one mention: https://github.com/Naereen/Tiny-Prolog-in-OCaml #15

Closed Naereen closed 4 years ago

Naereen commented 4 years ago

Proposal to add one mention: https://github.com/Naereen/Tiny-Prolog-in-OCaml

marcpaq commented 4 years ago

Thanks for the suggestion. It's a nice implementation.

Please correct me if I misunderstand, but it's implemented as 3 files (prolog.ml, lib.ml, and resolution.ml) instead of a single file.

If you find another single-file implementation of Prolog, or any other language, let me know.

Naereen commented 4 years ago

Hi, oh you're right. I forked my own code and moved the source in one unique file, it works exactly the same: https://github.com/Naereen/Tiny-Prolog-in-OCaml-OneFile (check in https://github.com/Naereen/Tiny-Prolog-in-OCaml-OneFile/tree/master/prolog : only prolog.ml)

Can I submit a second PR please?

marcpaq commented 4 years ago

I'd be happy to accept your 1-file Prolog in OCaml. Submit away!

Naereen commented 4 years ago

Thanks! I opened another PR, see #18 !