summary refs log tree commit diff
path: root/src/utility.rs
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-08-30 23:35:45 +1200
committerSophie Forrest <git@sophieforrest.com>2024-08-30 23:35:45 +1200
commit13b95941183666fadd090314e4e9af33283084cd (patch)
tree2831968068a77b7a37a37d1356e9673d4dcc3275 /src/utility.rs
parentf5f789540ad7d3f7f4f855c9db69d65cfc190ee0 (diff)
feat(engine)!: implement u32 engine
Diffstat (limited to '')
-rw-r--r--src/utility.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utility.rs b/src/utility.rs
index 4eba853..514343c 100644
--- a/src/utility.rs
+++ b/src/utility.rs
@@ -37,10 +37,7 @@ pub fn execute_from_file<E: Engine>(
 /// This function will return an error if parsing or
 /// execution fails. See documentation for [`crate::parser::parse`] and
 /// [`crate::executor::execute`].
-pub fn execute_from_str<E: Engine<TapeInner = u8>>(
-	input: &str,
-	tape: &mut [E::TapeInner],
-) -> Result<(), Error> {
+pub fn execute_from_str<E: Engine>(input: &str, tape: &mut [E::TapeInner]) -> Result<(), Error> {
 	let operator_codes = lex(input);
 
 	let instructions = parse(input, &operator_codes)?;