Skip to content

Commit efc2ec6

Browse files
erlang abstract form
1 parent 24b723a commit efc2ec6

125 files changed

Lines changed: 3984 additions & 1427 deletions

File tree

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: 12 additions & 0 deletions
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
@@ -18,6 +18,7 @@ members = [
1818
"pretty-arena",
1919
"format",
2020
"erlang-term-format",
21+
"erlang-abstract-format",
2122
]
2223

2324
# common dependencies

compiler-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ flate2.workspace = true
6060
futures.workspace = true
6161
hexpm = { path = "../hexpm" }
6262
pretty-arena = { path = "../pretty-arena" }
63+
erlang-abstract-format = { path = "../erlang-abstract-format" }
6364
http.workspace = true
6465
im.workspace = true
6566
itertools.workspace = true

compiler-core/src/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ impl Module {
415415
}
416416
}
417417

418-
pub fn module_erlang_name(gleam_name: &EcoString) -> EcoString {
419-
gleam_name.replace("/", "@")
418+
pub fn module_erlang_name(gleam_name: &str) -> EcoString {
419+
gleam_name.replace("/", "@").into()
420420
}
421421

422422
#[derive(Debug, Clone, PartialEq)]

0 commit comments

Comments
 (0)