diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-08-30 23:35:45 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-08-30 23:35:45 +1200 |
| commit | 13b95941183666fadd090314e4e9af33283084cd (patch) | |
| tree | 2831968068a77b7a37a37d1356e9673d4dcc3275 /src/utility.rs | |
| parent | f5f789540ad7d3f7f4f855c9db69d65cfc190ee0 (diff) | |
feat(engine)!: implement u32 engine
Diffstat (limited to '')
| -rw-r--r-- | src/utility.rs | 5 |
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)?; |