Add several builtins for strings and bytestring

Co-authored-by: rvcas <x@rvcas.dev>
This commit is contained in:
Kasey White
2022-08-07 22:12:26 -04:00
committed by Lucas
parent 0e5d25b019
commit 11ee99c199
7 changed files with 324 additions and 76 deletions

View File

@@ -1,3 +1,5 @@
use std::string::FromUtf8Error;
use thiserror::Error;
use crate::ast::{NamedDeBruijn, Term, Type};
@@ -28,4 +30,6 @@ pub enum Error {
NotAConstant(Value),
#[error("The evaluation never reached a final state")]
MachineNeverReachedDone,
#[error("Decoding utf8")]
Utf8(#[from] FromUtf8Error),
}