Skip to content

Commit d8090c1

Browse files
authored
♻️ flatten NDC interpreter module (#91)
1 parent 8c35b3e commit d8090c1

49 files changed

Lines changed: 242 additions & 242 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
resolver = "3"
3-
members = ["ndc_macros", "ndc_bin", "ndc_lib", "ndc_lsp", "ndc_lexer", "ndc_parser", "ndc_stdlib", "benches", "tests"]
3+
members = ["ndc_macros", "ndc_bin", "ndc_interpreter", "ndc_lsp", "ndc_lexer", "ndc_parser", "ndc_stdlib", "benches", "tests"]
44

55
[workspace.package]
66
edition = "2024"
@@ -18,7 +18,7 @@ derive_more = { version = "2.1.1", features = ["deref", "deref_mut", "from", "di
1818
factorial = "0.4.0"
1919
itertools = "0.14.0"
2020
ndc_lexer = { path = "ndc_lexer" }
21-
ndc_lib = { path = "ndc_lib" }
21+
ndc_interpreter = { path = "ndc_interpreter" }
2222
ndc_parser = { path = "ndc_parser" }
2323
ndc_lsp = { path = "ndc_lsp" }
2424
ndc_macros = { path = "ndc_macros" }

benches/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ edition.workspace = true
44
license.workspace = true
55

66
[dependencies]
7-
ndc_lib.workspace = true
7+
ndc_interpreter.workspace = true
88
ndc_stdlib.workspace = true
99
rand.workspace = true
1010
criterion.workspace = true

benches/src/benchmark.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use criterion::{Criterion, criterion_group, criterion_main};
2-
use ndc_lib::interpreter::Interpreter;
3-
use ndc_lib::interpreter::InterpreterError;
2+
use ndc_interpreter::Interpreter;
3+
use ndc_interpreter::InterpreterError;
44
use ndc_stdlib::WithStdlib;
55
use rand::{RngExt, SeedableRng};
66
use rand_chacha::ChaCha8Rng;

ndc_bin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ itertools.workspace = true
1515
strsim.workspace = true
1616
miette = { version = "7.6.0", features = ["fancy"] }
1717
ndc_lexer.workspace = true
18-
ndc_lib.workspace = true
18+
ndc_interpreter.workspace = true
1919
ndc_stdlib.workspace = true
2020
ndc_lsp.workspace = true
2121
owo-colors.workspace = true

ndc_bin/src/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use miette::{Diagnostic, LabeledSpan, SourceSpan};
22
use ndc_lexer::Span;
3-
use ndc_lib::interpreter::InterpreterError;
3+
use ndc_interpreter::InterpreterError;
44
use std::fmt;
55

66
fn span_to_source_span(span: Span) -> SourceSpan {

ndc_bin/src/docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use ndc_lib::interpreter::Interpreter;
2-
use ndc_lib::interpreter::function::{Parameter, TypeSignature};
1+
use ndc_interpreter::Interpreter;
2+
use ndc_interpreter::function::{Parameter, TypeSignature};
33
use ndc_stdlib::WithStdlib;
44
use std::cmp::Ordering;
55
use std::fmt::Write;

ndc_bin/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use anyhow::{Context, anyhow};
55
use clap::{Parser, Subcommand};
66
use highlighter::{AndycppHighlighter, AndycppHighlighterState};
77
use miette::{NamedSource, highlighters::HighlighterState};
8-
use ndc_lib::interpreter::{Interpreter, InterpreterError};
8+
use ndc_interpreter::{Interpreter, InterpreterError};
99
use ndc_stdlib::WithStdlib;
1010
use std::path::PathBuf;
1111
use std::process;

ndc_bin/src/repl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![allow(clippy::print_stdout, clippy::print_stderr)]
22
use itertools::Itertools;
33
use miette::highlighters::HighlighterState;
4-
use ndc_lib::interpreter::Interpreter;
4+
use ndc_interpreter::Interpreter;
55
use ndc_stdlib::WithStdlib;
66
use rustyline::Helper;
77
use rustyline::config::Configurer;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
22
[package]
3-
name = "ndc_lib"
3+
name = "ndc_interpreter"
44
edition.workspace = true
55
version.workspace = true
66

0 commit comments

Comments
 (0)