You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @matko, thanks for your work on this. Is it possible to use this crate to evaluate the predicates in an existing .pl Prolog file without conversion to this crate's datatypes? I looked through the examples in this repository but did not see anything like that.
The text was updated successfully, but these errors were encountered:
There's currently no way to evaluate predicates in a prolog file, as my own use case was more the opposite - I needed a way to write predicates in rust for use from prolog.
You can call consult using the various methods for calling into prolog that are defined in the library. However, this will not automatically give you rust-callable functions, you'll still have to define those through the prolog! macro.
Maybe it'd be nice to build in a consult function that also evaluates the prolog file and extracts predicate definitions. I'll have to give it some thought.
Hi @matko, thanks for your work on this. Is it possible to use this crate to evaluate the predicates in an existing
.pl
Prolog file without conversion to this crate's datatypes? I looked through the examples in this repository but did not see anything like that.The text was updated successfully, but these errors were encountered: