]> Repositorios git - scryer-prolog.git/commitdiff
Implemented Debug for the new data structures
authornotoria <[email protected]>
Sat, 9 May 2020 20:28:32 +0000 (22:28 +0200)
committernotoria <[email protected]>
Sat, 9 May 2020 20:28:32 +0000 (22:28 +0200)
src/prolog/indexing.rs
src/prolog/machine/streams.rs

index 75a4773698c11f883a80b7b0c163aea399a76559..c03ff77a184db927ae750dec540317b2b4105ca3 100644 (file)
@@ -11,13 +11,14 @@ use std::convert::TryFrom;
 use std::hash::Hash;
 use std::rc::Rc;
 
-#[derive(Clone, Copy)]
+#[derive(Debug, Clone, Copy)]
 enum IntIndex {
     External(usize),
     Fail,
     Internal(usize),
 }
 
+#[derive(Debug)]
 pub struct CodeOffsets {
     atom_tbl: TabledData<Atom>,
     pub constants: IndexMap<Constant, ThirdLevelIndex>,
index 68b2ec3bf0b12b628f4483aeb6b5000afc8f0383..6a904aa0be58f947928ee69174f54e3e07ca38ac 100644 (file)
@@ -59,6 +59,7 @@ pub enum EOFAction {
     Reset,
 }
 
+#[derive(Debug)]
 pub enum AtEndOfStream {
     Not,
     End,