Implement more builtins for bytestring and integer

Co-authored-by: rvcas <x@rvcas.dev>
This commit is contained in:
Kasey White
2022-08-10 01:27:11 -04:00
committed by Lucas
parent 7f1ffd8e2f
commit f3ace55355
5 changed files with 251 additions and 136 deletions

View File

@@ -32,4 +32,8 @@ pub enum Error {
MachineNeverReachedDone,
#[error("Decoding utf8")]
Utf8(#[from] FromUtf8Error),
#[error("Out of Bounds\n\nindex: {}\nbytestring: {}\npossible: 0 - {}", .0, hex::encode(.1), .1.len() - 1)]
ByteStringOutOfBounds(isize, Vec<u8>),
#[error("Divide By Zero\n\n{0} / {1}")]
DivideByZero(isize, isize),
}