by yencabulator · 4y ago · 0 comments
open(File, Mode, Stream, Options)
https://github.com/ichiban/prolog/blob/8e3dafd6d29334417a793...`open(File, Mode, Stream, Options)` and other builtin predicates are available if you construct an interpreter with `p := prolog.New(nil, nil)`.
On the other hand, `p := new(prolog.Interpreter)` constructs a sandbox interpreter without any builtin predicates. You can explicitly register builtin predicates as you wish.