nemo
nemo copied to clipboard
Public API for adding sources `Program`s
It would be nice if one could programmatically add sources to a Program
, which may not be backed by a file, but by an arbitrary stream of tuples (maybe generated ones). Especially for the python integration this would be beneficial, eg.:
program = load_string('result(?value) :- data("key", ?value).')
program.add_souces("data", [["something", 1], ["key", 42]])