summaryrefslogtreecommitdiff
path: root/morphology/examples
diff options
context:
space:
mode:
authorjacksonfu14 <jackson@fashionunited.com>2025-11-16 17:12:19 +0100
committerJackson Moore <jacksonmoore@tuta.io>2025-11-16 17:12:19 +0100
commit3077c7af770b055804d5cf48994a4e4cf6d31146 (patch)
tree3e79bc817942db478031723039fdd021606a669d /morphology/examples
parent3505cc56367feabc60aaffe5e2b899d4d5d00531 (diff)
chore: rename meta_affine crate to morphology
Diffstat (limited to 'morphology/examples')
-rw-r--r--morphology/examples/demo.rs8
-rw-r--r--morphology/examples/demo_full.rs10
-rw-r--r--morphology/examples/pretty_print_demo.rs2
-rw-r--r--morphology/examples/test_all_sorting_options.rs4
-rw-r--r--morphology/examples/test_length_sorting.rs4
-rw-r--r--morphology/examples/test_sorting_directions.rs4
-rw-r--r--morphology/examples/test_sorting_methods.rs4
7 files changed, 18 insertions, 18 deletions
diff --git a/morphology/examples/demo.rs b/morphology/examples/demo.rs
index bdaddf4..5dad367 100644
--- a/morphology/examples/demo.rs
+++ b/morphology/examples/demo.rs
@@ -4,11 +4,11 @@
//! rustc examples/demo.rs -L . --extern meta_affine=libmeta_affine.rlib -o demo
//! ./demo
-extern crate meta_affine;
+extern crate morphology;
-use meta_affine::{Value, ValidSet};
-use meta_affine::value::get_minimum_derivation_path;
-use meta_affine::set::generate_valid_sets;
+use morphology::{Value, ValidSet};
+use morphology::value::get_minimum_derivation_path;
+use morphology::set::generate_valid_sets;
fn main() {
println!("\n{}", "=".repeat(70));
diff --git a/morphology/examples/demo_full.rs b/morphology/examples/demo_full.rs
index aaebef1..01c71f6 100644
--- a/morphology/examples/demo_full.rs
+++ b/morphology/examples/demo_full.rs
@@ -4,11 +4,11 @@
//! rustc examples/demo_full.rs -L . --extern meta_affine=libmeta_affine.rlib -o demo_full
//! ./demo_full
-extern crate meta_affine;
+extern crate morphology;
-use meta_affine::{Value, ValidSet};
-use meta_affine::value::get_minimum_derivation_path;
-use meta_affine::set::generate_valid_sets;
+use morphology::{Value, ValidSet};
+use morphology::value::get_minimum_derivation_path;
+use morphology::set::generate_valid_sets;
fn main() {
println!("\n{}", "=".repeat(70));
@@ -162,7 +162,7 @@ fn main() {
println!("{}", "=".repeat(70));
println!("CONSTRAINT VALIDATION DEMONSTRATION\n");
- use meta_affine::sequence::*;
+ use morphology::sequence::*;
println!("8. Constraint checking examples:");
diff --git a/morphology/examples/pretty_print_demo.rs b/morphology/examples/pretty_print_demo.rs
index 2760962..a25896f 100644
--- a/morphology/examples/pretty_print_demo.rs
+++ b/morphology/examples/pretty_print_demo.rs
@@ -3,7 +3,7 @@
//! Compile and run:
//! cargo run --example pretty_print_demo
-use meta_affine::Value;
+use morphology::Value;
fn main() {
println!("Pretty Print Demonstration\n");
diff --git a/morphology/examples/test_all_sorting_options.rs b/morphology/examples/test_all_sorting_options.rs
index e5e796f..98f454c 100644
--- a/morphology/examples/test_all_sorting_options.rs
+++ b/morphology/examples/test_all_sorting_options.rs
@@ -1,7 +1,7 @@
// Test program demonstrating all sorting options working together
-use meta_affine::{Sequence, Value};
-use meta_affine::sequence::{
+use morphology::{Sequence, Value};
+use morphology::sequence::{
sort_sequences, SequenceOptions,
PrecedenceOrder, SortingMethod, SortingDirection, LengthSorting
};
diff --git a/morphology/examples/test_length_sorting.rs b/morphology/examples/test_length_sorting.rs
index 1dff8f5..5d258cf 100644
--- a/morphology/examples/test_length_sorting.rs
+++ b/morphology/examples/test_length_sorting.rs
@@ -1,7 +1,7 @@
// Test program to demonstrate InterpolateLength vs SegregateLength sorting
-use meta_affine::{Sequence, Value};
-use meta_affine::sequence::{sort_sequences, SequenceOptions, LengthSorting, SortingMethod};
+use morphology::{Sequence, Value};
+use morphology::sequence::{sort_sequences, SequenceOptions, LengthSorting, SortingMethod};
fn print_sequences(label: &str, sequences: &[Sequence]) {
println!("\n{}:", label);
diff --git a/morphology/examples/test_sorting_directions.rs b/morphology/examples/test_sorting_directions.rs
index 30ea280..c348e80 100644
--- a/morphology/examples/test_sorting_directions.rs
+++ b/morphology/examples/test_sorting_directions.rs
@@ -1,7 +1,7 @@
// Test program to demonstrate Forward vs Backward sorting directions
-use meta_affine::{Sequence, Value};
-use meta_affine::sequence::{sort_sequences, SequenceOptions, SortingMethod, SortingDirection};
+use morphology::{Sequence, Value};
+use morphology::sequence::{sort_sequences, SequenceOptions, SortingMethod, SortingDirection};
fn print_sequences(label: &str, sequences: &[Sequence]) {
println!("\n{}:", label);
diff --git a/morphology/examples/test_sorting_methods.rs b/morphology/examples/test_sorting_methods.rs
index b4ad18f..2e1b4f3 100644
--- a/morphology/examples/test_sorting_methods.rs
+++ b/morphology/examples/test_sorting_methods.rs
@@ -1,7 +1,7 @@
// Test program to demonstrate DepthFirst vs BreadthFirst sorting
-use meta_affine::{Sequence, Value};
-use meta_affine::sequence::{sort_sequences, SequenceOptions, SortingMethod};
+use morphology::{Sequence, Value};
+use morphology::sequence::{sort_sequences, SequenceOptions, SortingMethod};
fn print_sequences(label: &str, sequences: &[Sequence]) {
println!("\n{}:", label);