Skip to content

Commit e8330f4

Browse files
authored
Merge pull request #27 from nnao45/codex/refactor-dntker.rs-for-size
refactor bc runtime layering
2 parents bb4f3ad + cee020f commit e8330f4

16 files changed

Lines changed: 2541 additions & 2435 deletions

src/dntker/bc/bc.rs

Lines changed: 0 additions & 1657 deletions
This file was deleted.

src/dntker/bc/error.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
use std::fmt;
2+
3+
#[derive(Debug)]
4+
pub enum BcError {
5+
NoResult,
6+
/// Parse or evaluation error
7+
Error(String),
8+
}
9+
10+
impl fmt::Display for BcError {
11+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12+
match self {
13+
BcError::NoResult => write!(f, "No result returned"),
14+
BcError::Error(msg) => write!(f, "Evaluation error: {msg}"),
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)