Skip to content

Commit

Permalink
wip2 xfer to desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
StachuDotNet committed Oct 14, 2024
1 parent 648eb6c commit 71905ce
Show file tree
Hide file tree
Showing 13 changed files with 930 additions and 1,082 deletions.
13 changes: 7 additions & 6 deletions backend/src/BuiltinExecution/Libs/Int64.fs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ let fns : List<BuiltInFn> =
// See above for when to uncomment this
// TODO: A future version should support all non-zero modulus values and should include the infix "%"
// { name = fn "mod" 0
// parameters = [ Param.make "value" TInt64 ""; Param.make "modulus" TInt64 "" ]
// parameters = [ Param.make "dividend" TInt64 ""; Param.make "divisor" TInt64 "" ]
// returnType = TypeReference.result TInt64 TString
// description =
// "Returns the result of wrapping <param value> around so that {{0 <= res < modulus}}, as a <type Result>.
// If <param modulus> is positive, returns {{Ok res}}. Returns an {{Error}} if <param modulus> is {{0}} or negative.
// "Returns the result of wrapping <param dividend> around so that {{0 <= res < divisor}}, as a <type Result>.
// If <param divisor> is positive, returns {{Ok res}}. Returns an {{Error}} if <param divisor> is {{0}} or negative.
// Use <fn Int64.remainder> if you want the remainder after division, which has a different behavior for negative numbers."
// fn =
// (function
Expand Down Expand Up @@ -101,14 +101,15 @@ let fns : List<BuiltInFn> =

{ name = fn "int64Remainder" 0
typeParams = []
parameters = [ Param.make "value" TInt64 ""; Param.make "divisor" TInt64 "" ]
parameters =
[ Param.make "dividend" TInt64 ""; Param.make "divisor" TInt64 "" ]
returnType = TypeReference.result TInt64 TString
description =
"Returns the integer remainder left over after dividing <param value> by
"Returns the integer remainder left over after dividing <param dividend> by
<param divisor>, as a <type Result>.
For example, {{Int64.remainder 15 6 == Ok 3}}. The remainder will be
negative only if {{<var value> < 0}}.
negative only if {{<var dividend> < 0}}.
The sign of <param divisor> doesn't influence the outcome.
Expand Down
8 changes: 0 additions & 8 deletions packages/darklang/languageTools/_runtimeErrors/cli.dark

This file was deleted.

272 changes: 0 additions & 272 deletions packages/darklang/languageTools/_runtimeErrors/execution.dark

This file was deleted.

47 changes: 0 additions & 47 deletions packages/darklang/languageTools/_runtimeErrors/int.dark

This file was deleted.

Loading

0 comments on commit 71905ce

Please sign in to comment.