]> Repositorios git - scryer-prolog.git/commit
split into lib and bin
authorSkgland <[email protected]>
Thu, 25 Feb 2021 22:24:20 +0000 (23:24 +0100)
committerSkgland <[email protected]>
Sun, 28 Feb 2021 18:21:30 +0000 (19:21 +0100)
commit2f428b72618aeb421485950ffb91ff9dba2f0b0c
tree489a2c39f2da928459833437e94ee28270fe8a89
parentf935060b2b9393c28e62c7f2b6918a9b85618f9b
split into lib and bin

* makes most pub things in src/ pub(crate) as not to expose things accidentally
  * only those things needed by src/bin/scryer-prolog.rs and tests/scryer.rs
    should be pub
* split src/main.rs into src/lib.rs and src/bin/scryer-prolog.rs
* add tests folder and run most of the files in src/tests with cargo test
  added bytes method to Stream in src/machine/streams.rs to check if stdout is as expected
35 files changed:
build.rs
src/allocator.rs
src/arithmetic.rs
src/bin/scryer-prolog.rs [new file with mode: 0644]
src/clause_types.rs
src/codegen.rs
src/debray_allocator.rs
src/fixtures.rs
src/forms.rs
src/heap_iter.rs
src/heap_print.rs
src/indexing.rs
src/instructions.rs
src/iterators.rs
src/lib.rs [moved from src/main.rs with 61% similarity]
src/machine/code_repo.rs
src/machine/code_walker.rs
src/machine/copier.rs
src/machine/heap.rs
src/machine/loader.rs
src/machine/machine_errors.rs
src/machine/machine_indices.rs
src/machine/machine_state.rs
src/machine/machine_state_impl.rs
src/machine/mod.rs
src/machine/partial_string.rs
src/machine/preprocessor.rs
src/machine/stack.rs
src/machine/streams.rs
src/machine/system_calls.rs
src/machine/term_stream.rs
src/read.rs
src/targets.rs
src/tests/hello_world.pl [new file with mode: 0644]
tests/scryer.rs [new file with mode: 0644]