diff options
author | Eduardo Julian | 2020-10-15 01:01:21 -0400 |
---|---|---|
committer | Eduardo Julian | 2020-10-15 01:01:21 -0400 |
commit | c006a5fe8e82f6fc7c8cdb9db0f44c06d229f34e (patch) | |
tree | f00af06ceb7cd77ab53aa214abb2e7383dc87500 /stdlib/source/lux/control/parser/code.lux | |
parent | 440608bc32916329c9f3c0f2bd9a8d1152ed5da8 (diff) |
Re-named "to-text" functions to "format".
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/control/parser/code.lux | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/control/parser/code.lux b/stdlib/source/lux/control/parser/code.lux index ca0df7c9f..f03188e15 100644 --- a/stdlib/source/lux/control/parser/code.lux +++ b/stdlib/source/lux/control/parser/code.lux @@ -32,7 +32,7 @@ (def: (remaining-inputs asts) (-> (List Code) Text) ($_ text@compose text.new-line "Remaining input: " - (|> asts (list@map code.to-text) (list.interpose " ") (text.join-with "")))) + (|> asts (list@map code.format) (list.interpose " ") (text.join-with "")))) (def: #export any {#.doc "Just returns the next input without applying any logic."} @@ -88,7 +88,7 @@ (#.Cons [token tokens']) (if (code@= ast token) (#try.Success [tokens' []]) - (#try.Failure ($_ text@compose "Expected a " (code.to-text ast) " but instead got " (code.to-text token) + (#try.Failure ($_ text@compose "Expected a " (code.format ast) " but instead got " (code.format token) (remaining-inputs tokens)))) _ @@ -185,7 +185,7 @@ _ (#try.Failure (text@compose "Unconsumed inputs: " - (|> (list@map code.to-text unconsumed) + (|> (list@map code.format unconsumed) (text.join-with ", "))))))) (def: #export (local inputs syntax) |