Progress on updating entire compiler for snake_case

This commit is contained in:
Sam Mohr 2025-01-05 03:48:03 -08:00
parent db6cc5a7b1
commit b56fbd38e1
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
297 changed files with 8416 additions and 8544 deletions

View file

@ -3,4 +3,4 @@ platform "cli"
exposes []
packages {}
imports [Task.{ Task }]
provides [mainForHost]
provides [main_for_host]

View file

@ -91,7 +91,7 @@ SpacesBefore {
},
item: [
@141-152 ExposedName(
"mainForHost",
"main_for_host",
),
],
},

View file

@ -3,4 +3,4 @@ platform "cli"
exposes []
packages {}
imports [ Task.{ Task } ]
provides [ mainForHost ]
provides [ main_for_host ]

View file

@ -3,4 +3,4 @@ platform "foo/barbaz"
exposes []
packages { foo: "./foo" }
imports []
provides [mainForHost]
provides [main_for_host]

View file

@ -81,7 +81,7 @@ SpacesBefore {
},
item: [
@132-143 ExposedName(
"mainForHost",
"main_for_host",
),
],
},

View file

@ -3,4 +3,4 @@ platform "foo/barbaz"
exposes []
packages { foo: "./foo" }
imports []
provides [ mainForHost ]
provides [ main_for_host ]

View file

@ -120,7 +120,7 @@ Defs {
@130-145 Apply(
@130-139 Var {
module_name: "Num",
ident: "toStr",
ident: "to_str",
},
[
@140-145 Var {

View file

@ -3,5 +3,5 @@ main =
|> List.dropFirst 1
|> List.mapTry? Str.toU8
|> List.sum
|> \total -> "Sum of numbers: $(Num.toStr total)"
|> \total -> "Sum of numbers: $(Num.to_str total)"
|> Str.toUpper

View file

@ -3,4 +3,4 @@ platform "test/types"
exposes []
packages {}
imports []
provides [mainForHost]
provides [main_for_host]

View file

@ -87,7 +87,7 @@ SpacesBefore {
},
item: [
@141-152 ExposedName(
"mainForHost",
"main_for_host",
),
],
},

View file

@ -3,7 +3,7 @@ platform "test/types"
exposes []
packages {}
imports []
provides [ mainForHost ]
provides [ main_for_host ]
mainForHost : App Flags Model
mainForHost = main
main_for_host : App Flags Model
main_for_host = main

View file

@ -5,6 +5,6 @@ maybeEarlyReturn = \x ->
else
x + 2
Num.toStr y
Num.to_str y
maybeEarlyReturn 10

View file

@ -118,7 +118,7 @@
Apply(
@116-125 Var {
module_name: "Num",
ident: "toStr",
ident: "to_str",
},
[
@126-127 Var {

View file

@ -5,6 +5,6 @@ maybeEarlyReturn = \x ->
else
x + 2
Num.toStr y
Num.to_str y
maybeEarlyReturn 10

View file

@ -7,6 +7,6 @@ maybeEarlyReturn = \x ->
_ -> x + 2
Num.toStr y
Num.to_str y
maybeEarlyRetun 3

View file

@ -127,7 +127,7 @@
Apply(
@143-152 Var {
module_name: "Num",
ident: "toStr",
ident: "to_str",
},
[
@153-154 Var {

View file

@ -8,6 +8,6 @@ maybeEarlyReturn = \x ->
_ -> x + 2
Num.toStr y
Num.to_str y
maybeEarlyRetun 3

View file

@ -1,3 +1,3 @@
mainForHost : [StdoutWrite Str ({} -> Op), StderrWrite Str ({} -> Op), Done] as Op
mainForHost = main
main_for_host : [StdoutWrite Str ({} -> Op), StderrWrite Str ({} -> Op), Done] as Op
main_for_host = main
42

View file

@ -18,7 +18,7 @@
value_defs: [
AnnotatedBody {
ann_pattern: @0-11 Identifier {
ident: "mainForHost",
ident: "main_for_host",
},
ann_type: @14-0 As(
@14-76 TagUnion {
@ -88,7 +88,7 @@
Newline,
],
body_pattern: @83-94 Identifier {
ident: "mainForHost",
ident: "main_for_host",
},
body_expr: @97-101 Var {
module_name: "",

View file

@ -1,3 +1,3 @@
mainForHost : [StdoutWrite Str ({} -> Op), StderrWrite Str ({} -> Op), Done] as Op
mainForHost = main
main_for_host : [StdoutWrite Str ({} -> Op), StderrWrite Str ({} -> Op), Done] as Op
main_for_host = main
42

View file

@ -5270,7 +5270,7 @@ mod test_fmt {
exposes [] \
packages {} \
imports [] \
provides [mainForHost]",
provides [main_for_host]",
);
}
@ -6233,7 +6233,7 @@ mod test_fmt {
exposes []
packages {}
imports []
provides [mainForHost]
provides [main_for_host]
"#
));
}