mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Progress on updating entire compiler for snake_case
This commit is contained in:
parent
db6cc5a7b1
commit
b56fbd38e1
297 changed files with 8416 additions and 8544 deletions
|
@ -3,4 +3,4 @@ platform "cli"
|
|||
exposes []
|
||||
packages {}
|
||||
imports [Task.{ Task }]
|
||||
provides [mainForHost]
|
||||
provides [main_for_host]
|
||||
|
|
|
@ -91,7 +91,7 @@ SpacesBefore {
|
|||
},
|
||||
item: [
|
||||
@141-152 ExposedName(
|
||||
"mainForHost",
|
||||
"main_for_host",
|
||||
),
|
||||
],
|
||||
},
|
||||
|
|
|
@ -3,4 +3,4 @@ platform "cli"
|
|||
exposes []
|
||||
packages {}
|
||||
imports [ Task.{ Task } ]
|
||||
provides [ mainForHost ]
|
||||
provides [ main_for_host ]
|
||||
|
|
|
@ -3,4 +3,4 @@ platform "foo/barbaz"
|
|||
exposes []
|
||||
packages { foo: "./foo" }
|
||||
imports []
|
||||
provides [mainForHost]
|
||||
provides [main_for_host]
|
||||
|
|
|
@ -81,7 +81,7 @@ SpacesBefore {
|
|||
},
|
||||
item: [
|
||||
@132-143 ExposedName(
|
||||
"mainForHost",
|
||||
"main_for_host",
|
||||
),
|
||||
],
|
||||
},
|
||||
|
|
|
@ -3,4 +3,4 @@ platform "foo/barbaz"
|
|||
exposes []
|
||||
packages { foo: "./foo" }
|
||||
imports []
|
||||
provides [ mainForHost ]
|
||||
provides [ main_for_host ]
|
||||
|
|
|
@ -120,7 +120,7 @@ Defs {
|
|||
@130-145 Apply(
|
||||
@130-139 Var {
|
||||
module_name: "Num",
|
||||
ident: "toStr",
|
||||
ident: "to_str",
|
||||
},
|
||||
[
|
||||
@140-145 Var {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,4 +3,4 @@ platform "test/types"
|
|||
exposes []
|
||||
packages {}
|
||||
imports []
|
||||
provides [mainForHost]
|
||||
provides [main_for_host]
|
||||
|
|
|
@ -87,7 +87,7 @@ SpacesBefore {
|
|||
},
|
||||
item: [
|
||||
@141-152 ExposedName(
|
||||
"mainForHost",
|
||||
"main_for_host",
|
||||
),
|
||||
],
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,6 +5,6 @@ maybeEarlyReturn = \x ->
|
|||
else
|
||||
x + 2
|
||||
|
||||
Num.toStr y
|
||||
Num.to_str y
|
||||
|
||||
maybeEarlyReturn 10
|
|
@ -118,7 +118,7 @@
|
|||
Apply(
|
||||
@116-125 Var {
|
||||
module_name: "Num",
|
||||
ident: "toStr",
|
||||
ident: "to_str",
|
||||
},
|
||||
[
|
||||
@126-127 Var {
|
||||
|
|
|
@ -5,6 +5,6 @@ maybeEarlyReturn = \x ->
|
|||
else
|
||||
x + 2
|
||||
|
||||
Num.toStr y
|
||||
Num.to_str y
|
||||
|
||||
maybeEarlyReturn 10
|
||||
|
|
|
@ -7,6 +7,6 @@ maybeEarlyReturn = \x ->
|
|||
|
||||
_ -> x + 2
|
||||
|
||||
Num.toStr y
|
||||
Num.to_str y
|
||||
|
||||
maybeEarlyRetun 3
|
|
@ -127,7 +127,7 @@
|
|||
Apply(
|
||||
@143-152 Var {
|
||||
module_name: "Num",
|
||||
ident: "toStr",
|
||||
ident: "to_str",
|
||||
},
|
||||
[
|
||||
@153-154 Var {
|
||||
|
|
|
@ -8,6 +8,6 @@ maybeEarlyReturn = \x ->
|
|||
_ -> x + 2
|
||||
|
||||
|
||||
Num.toStr y
|
||||
Num.to_str y
|
||||
|
||||
maybeEarlyRetun 3
|
||||
|
|
|
@ -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
|
|
@ -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: "",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
"#
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue