]> Repositorios git - scryer-prolog.git/commit
use partial strings for passing argv to toplevel.pl
authorStephan Renatus <[email protected]>
Mon, 6 Apr 2020 15:35:21 +0000 (17:35 +0200)
committerStephan Renatus <[email protected]>
Mon, 13 Apr 2020 08:10:10 +0000 (10:10 +0200)
commit155645307a16155e2b0d6399c19c1ba459048e5d
tree708006c87f55d6c69fb8bb77110c135331f97048
parent97d8d079476a7f2f4ef03170cc7449edfdda9a9b
use partial strings for passing argv to toplevel.pl

In run_top_level: rename variables, make them partial strings

The rename is mostly cosmetic: all of argv is passed, and if argv
contains flags, goals, etc, it's more than filenames.

Using partial strings instead of atom came from discussions about how to
pass goals in the CLI, and can thus be considered preliminary work for
that.

In toplevel.pl: convert partial string to atom before passing it to
`use_module`.

Signed-off-by: Stephan Renatus <[email protected]>
src/prolog/machine/mod.rs
src/prolog/toplevel.pl