1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! kz80_prolog: Prolog compiler for Z80.
//!
//! A Prolog implementation targeting the Z80 processor using a Simplified Prolog Machine (SPM)
//! approach with compact bytecode and a small runtime interpreter.
//!
//! # Features
//!
//! - Facts and rules (Horn clauses)
//! - Unification of first-order terms
//! - Backtracking via choice points
//! - Atoms, variables, 16-bit integers
//! - Compound terms and lists
//! - Arithmetic evaluation and comparisons
//! - Cut for control flow
//!
//! # Example
//!
//! ```prolog
//! parent(tom, bob).
//! parent(bob, pat).
//! ancestor(X, Y) :- parent(X, Y).
//! ancestor(X, Z) :- parent(X, Y), ancestor(Y, Z).
//! ?- ancestor(tom, pat).
//! ```
pub use ;
pub use ;
pub use ;
pub use ;