Skip to content

Commit 9f531df

Browse files
committed
refactor: Hide Variant type from rusty_parser
Extracted the necessary functionality into a new module, rusty_bit_vec.
1 parent 983b7e6 commit 9f531df

16 files changed

Lines changed: 365 additions & 319 deletions

File tree

Cargo.lock

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resolver = "3"
33

44
members = [
55
"rusty_basic",
6+
"rusty_bit_vec",
67
"rusty_common",
78
"rusty_linter",
89
"rusty_parser",

rusty_basic/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ edition = "2024"
88

99
[dependencies]
1010
crossterm = "0.29"
11+
rusty_bit_vec = { path = "../rusty_bit_vec" }
1112
rusty_common = { path = "../rusty_common" }
1213
rusty_parser = { path = "../rusty_parser" }
1314
rusty_linter = { path = "../rusty_linter" }

rusty_basic/src/interpreter/built_ins/val.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
use rusty_bit_vec::{MAX_INTEGER, MAX_LONG};
12
use rusty_parser::BuiltInFunction;
2-
use rusty_variant::{MAX_INTEGER, MAX_LONG, Variant, VariantError};
3+
use rusty_variant::{Variant, VariantError};
34

45
use crate::RuntimeError;
56
use crate::interpreter::interpreter_trait::InterpreterTrait;

rusty_bit_vec/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "rusty_bit_vec"
3+
version = "0.10.0"
4+
edition = "2024"
5+
6+
[dependencies]

0 commit comments

Comments
 (0)