Skip to content

Commit 02b30ad

Browse files
committed
Cleaner separation between v0 and v1
1 parent 28a32ab commit 02b30ad

Some content is hidden

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

42 files changed

+86
-154
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
resolver = "2"
33
members = [
44
"core",
5-
"lang_v0",
6-
"macro",
7-
"lang_v1",
5+
"lang/v0/parser",
6+
"lang/v0/macro",
7+
"lang/v1/parser",
88
"extension"
99
]
1010

extension/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors = ["d-plaindoux <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
celma_core = { version = "0.1.0", path = "../core" }
9-
celma_macro = { version = "0.1.0", path = "../macro" }
8+
celma_core = { version = "0.1.0", path = "../core" }
9+
celma_macro_v0 = { version = "0.1.0", path = "../lang/v0/macro" }

extension/src/genlex/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ where
3030
S: Stream<Item = char> + 'a,
3131
{
3232
use celma_core::parser::char::{alpha, digit, space};
33-
use celma_macro::parsec_rules;
33+
use celma_macro_v0::parsec_rules;
3434

3535
fn mk_char(a: Vec<char>) -> char {
3636
*a.first().unwrap()
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "celma_macro"
2+
name = "celma_macro_v0"
33
version = "0.1.0"
44
authors = ["d-plaindoux <[email protected]>"]
55
edition = "2021"
@@ -8,8 +8,8 @@ edition = "2021"
88
proc-macro = true
99

1010
[dependencies]
11-
celma_core = { version = "0.1.0", path = "../core" }
12-
celma_lang_v0 = { version = "0.1.0", path = "../lang_v0" }
11+
celma_core = { version = "0.1.0", path = "../../../core" }
12+
celma_lang_v0 = { version = "0.1.0", path = "../parser" }
1313

1414
[dev-dependencies]
1515
bencher = "0.1.5"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use celma_core::parser::specs::Parse;
2828
use celma_core::stream::char_stream::CharStream;
2929
use celma_core::stream::position::Position;
3030
use celma_core::stream::specs::Stream;
31-
use celma_macro::parsec_rules;
31+
use celma_macro_v0::parsec_rules;
3232

3333
#[derive(Clone)]
3434
pub enum JSON {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ use celma_core::parser::response::Response::{Reject, Success};
2020
use celma_core::parser::specs::Parse;
2121
use celma_core::stream::char_stream::CharStream;
2222
use celma_core::stream::specs::Stream;
23-
use celma_lang_v0::meta::parser::{celma_parsec, celma_parsec_rules};
24-
use celma_lang_v0::meta::transpiler::Transpile;
23+
use celma_lang_v0::parser::{celma_parsec, celma_parsec_rules};
24+
use celma_lang_v0::transpiler::Transpile;
2525
use proc_macro::TokenStream;
2626

2727
#[proc_macro]

0 commit comments

Comments
 (0)