Skip to content

Commit 09728b8

Browse files
committed
minor revision
1 parent ebf4d46 commit 09728b8

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ members = [
77
"lang/v0/macro",
88
"lang/v1/ast",
99
"lang/v1/parser",
10+
"lang/v1/normalizer",
1011
"genlex"
1112
]
1213

genlex/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "celma_extension"
2+
name = "celma_genlex"
33
version = "0.1.0"
44
authors = ["d-plaindoux <[email protected]>"]
55
edition = "2024"

lang/v0/core/src/parser/literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ where
6363
}
6464
}
6565

66-
pub fn string(s: &str) -> Chars {
66+
pub fn string<'a>(s: &'a str) -> Chars<'a> {
6767
Chars(s)
6868
}
6969

lang/v0/macro/benches/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn mk_f64(a: Vec<char>) -> f64 {
5959
}
6060

6161
parsec_rules!(
62-
let json:{JSON} = S _=(string | number | boolean | null | array | object ) S
62+
let json:{JSON} = S _=(string | number | boolean | null | array | object) S
6363
let number:{JSON} = f=NUMBER -> {JSON::Number(f)}
6464
let string:{JSON} = s=STRING -> {JSON::String(s)}
6565
let null:{JSON} = "null" -> {JSON::Null}

lang/v1/normalizer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "celma_v1"
2+
name = "celma_v1_normalizer"
33
version = "0.1.0"
44
authors = ["dplaindoux <[email protected]>"]
55
edition = "2024"

lang/v1/normalizer/src/ast.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#[derive(Clone, Debug, Eq, PartialEq)]
18-
pub enum ASTGrammar<A> {
18+
pub enum AST<A> {
1919
Epsilon(),
2020
Bottom(),
2121
Var(String),
@@ -32,7 +32,6 @@ pub enum ASTGrammar<A> {
3232

3333
/*
3434
PN : ASTParsec -> (string -> ASTParsec) -> string list -> ASTGrammar
35-
PN : ASTParsec -> (string -> ASTParsec) -> string list -> ASTGrammar
3635
3736
PN[PIdent(n)]gl = Var(n) if n in l
3837
| mu(n,PN[g(n)]g(n::l) otherwise

lang/v1/parser/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ edition = "2024"
66

77
[dependencies]
88
celma_v0_core = { version = "0.1.0", path = "../../v0/core" }
9-
celma_v0_ast = { version = "0.1.0", path = "../../v0/ast" }
109
celma_v0_macro = { version = "0.1.0", path = "../../v0/macro" }
1110
celma_v1_ast = { version = "0.1.0", path = "../ast" }

0 commit comments

Comments
 (0)