@magnusopera/fscript 0.77.1 → 0.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FScript.Language/Ast.js +2 -2
- package/dist/FScript.Language/BuiltinFunctions.js +68 -67
- package/dist/FScript.Language/BuiltinSignatures.js +7 -7
- package/dist/FScript.Language/BuiltinTypes.js +3 -3
- package/dist/FScript.Language/Error.js +2 -2
- package/dist/FScript.Language/Eval.js +305 -213
- package/dist/FScript.Language/IncludeResolver.js +97 -79
- package/dist/FScript.Language/Interactive.js +149 -0
- package/dist/FScript.Language/Lexer.js +77 -77
- package/dist/FScript.Language/Parser.js +274 -272
- package/dist/FScript.Language/Pretty.js +4 -4
- package/dist/FScript.Language/Span.js +2 -2
- package/dist/FScript.Language/Token.js +59 -2
- package/dist/FScript.Language/TypeInfer.js +704 -379
- package/dist/FScript.Language/Types.js +98 -27
- package/dist/FScript.Language/Value.js +3 -2
- package/dist/Library.js +91 -79
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Array.js +36 -35
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Async.js +52 -23
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/AsyncBuilder.js +23 -2
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/BigInt.js +33 -32
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/BitConverter.js +2 -2
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/CHANGELOG.md +80 -1
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Date.js +8 -15
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/DateOffset.js +8 -17
- package/dist/fable_modules/fable-library-js.5.13.0/Directory.js +11 -0
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Double.js +8 -2
- package/dist/fable_modules/fable-library-js.5.13.0/Environment.js +3 -0
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Event.js +10 -1
- package/dist/fable_modules/fable-library-js.5.13.0/File.js +27 -0
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/List.js +35 -21
- package/dist/fable_modules/fable-library-js.5.13.0/Long.js +38 -0
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/MailboxProcessor.js +11 -5
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Map.js +8 -4
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/MutableMap.js +2 -2
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/MutableSet.js +1 -1
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Observable.js +5 -3
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Option.js +1 -18
- package/dist/fable_modules/fable-library-js.5.13.0/Path.js +31 -0
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Reflection.js +13 -3
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/RegExp.js +53 -24
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Seq.js +109 -22
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Set.js +16 -3
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/String.js +28 -1
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/System.js +15 -9
- package/dist/fable_modules/fable-library-js.5.13.0/Task.js +27 -0
- package/dist/fable_modules/fable-library-js.5.13.0/TaskBuilder.js +72 -0
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Types.js +12 -12
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Util.js +15 -3
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/package.json +1 -1
- package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/quotation.js +25 -8
- package/dist/fable_modules/project_cracked.json +1 -1
- package/package.json +2 -2
- package/dist/fable_modules/fable-library-js.5.2.0/Long.js +0 -47
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Boolean.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Char.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Choice.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/CollectionUtil.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/ConditionalWeakTable.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/DateOnly.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Decimal.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Encoding.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/FSharp.Collections.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/FSharp.Core.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Global.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Guid.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Int32.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/MapUtil.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Native.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Numeric.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/README.md +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Random.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Range.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Result.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Seq2.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/System.Collections.Generic.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/System.Text.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/TimeOnly.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/TimeSpan.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Timer.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Unicode.13.0.0.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/Uri.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/big.d.ts +0 -0
- /package/dist/fable_modules/{fable-library-js.5.2.0 → fable-library-js.5.13.0}/lib/big.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { length, isEmpty, map, singleton, append } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { concat, join, printf, toText, replace } from "../fable_modules/fable-library-js.5.
|
|
4
|
-
import { int64ToString } from "../fable_modules/fable-library-js.5.
|
|
5
|
-
import { toList } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { length, isEmpty, map, singleton, append } from "../fable_modules/fable-library-js.5.13.0/List.js";
|
|
3
|
+
import { concat, join, printf, toText, replace } from "../fable_modules/fable-library-js.5.13.0/String.js";
|
|
4
|
+
import { int64ToString } from "../fable_modules/fable-library-js.5.13.0/Util.js";
|
|
5
|
+
import { toList } from "../fable_modules/fable-library-js.5.13.0/Map.js";
|
|
6
6
|
import { Types_typeToString } from "./Types.js";
|
|
7
7
|
|
|
8
8
|
function closureParameters(firstArg, body) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { Record } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { record_type, int32_type, option_type, string_type } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Record } from "../fable_modules/fable-library-js.5.13.0/Types.js";
|
|
3
|
+
import { record_type, int32_type, option_type, string_type } from "../fable_modules/fable-library-js.5.13.0/Reflection.js";
|
|
4
4
|
|
|
5
5
|
export class Position extends Record {
|
|
6
6
|
constructor(File, Line, Column) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { Record, Union } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { record_type, union_type, bool_type, float64_type, int64_type, string_type } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Record, Union } from "../fable_modules/fable-library-js.5.13.0/Types.js";
|
|
3
|
+
import { record_type, union_type, bool_type, float64_type, int64_type, string_type } from "../fable_modules/fable-library-js.5.13.0/Reflection.js";
|
|
4
4
|
import { Span_$reflection } from "./Span.js";
|
|
5
5
|
|
|
6
6
|
export class TokenKind extends Union {
|
|
@@ -12,6 +12,63 @@ export class TokenKind extends Union {
|
|
|
12
12
|
cases() {
|
|
13
13
|
return ["EOF", "Newline", "Indent", "Dedent", "Ident", "IntLit", "FloatLit", "StringLit", "InterpString", "BoolLit", "Let", "Rec", "And", "Fun", "Match", "With", "When", "If", "Then", "Else", "Elif", "Raise", "For", "In", "Arrow", "Equals", "Bar", "LParen", "RParen", "LBracket", "RBracket", "LBracketBar", "BarRBracket", "Semicolon", "Comma", "Colon", "Dot", "RangeDots", "Hash", "Import", "As", "Include", "Module", "LBrace", "RBrace", "Type", "Typeof", "Nameof", "Of", "Plus", "Minus", "Star", "Slash", "Percent", "Less", "Greater", "LessEqual", "GreaterEqual", "AndAnd", "OrOr", "PipeForward", "Cons", "Append"];
|
|
14
14
|
}
|
|
15
|
+
static EOF = new TokenKind(0, []);
|
|
16
|
+
static Newline = new TokenKind(1, []);
|
|
17
|
+
static Indent = new TokenKind(2, []);
|
|
18
|
+
static Dedent = new TokenKind(3, []);
|
|
19
|
+
static Let = new TokenKind(10, []);
|
|
20
|
+
static Rec = new TokenKind(11, []);
|
|
21
|
+
static And = new TokenKind(12, []);
|
|
22
|
+
static Fun = new TokenKind(13, []);
|
|
23
|
+
static Match = new TokenKind(14, []);
|
|
24
|
+
static With = new TokenKind(15, []);
|
|
25
|
+
static When = new TokenKind(16, []);
|
|
26
|
+
static If = new TokenKind(17, []);
|
|
27
|
+
static Then = new TokenKind(18, []);
|
|
28
|
+
static Else = new TokenKind(19, []);
|
|
29
|
+
static Elif = new TokenKind(20, []);
|
|
30
|
+
static Raise = new TokenKind(21, []);
|
|
31
|
+
static For = new TokenKind(22, []);
|
|
32
|
+
static In = new TokenKind(23, []);
|
|
33
|
+
static Arrow = new TokenKind(24, []);
|
|
34
|
+
static Equals = new TokenKind(25, []);
|
|
35
|
+
static Bar = new TokenKind(26, []);
|
|
36
|
+
static LParen = new TokenKind(27, []);
|
|
37
|
+
static RParen = new TokenKind(28, []);
|
|
38
|
+
static LBracket = new TokenKind(29, []);
|
|
39
|
+
static RBracket = new TokenKind(30, []);
|
|
40
|
+
static LBracketBar = new TokenKind(31, []);
|
|
41
|
+
static BarRBracket = new TokenKind(32, []);
|
|
42
|
+
static Semicolon = new TokenKind(33, []);
|
|
43
|
+
static Comma = new TokenKind(34, []);
|
|
44
|
+
static Colon = new TokenKind(35, []);
|
|
45
|
+
static Dot = new TokenKind(36, []);
|
|
46
|
+
static RangeDots = new TokenKind(37, []);
|
|
47
|
+
static Hash = new TokenKind(38, []);
|
|
48
|
+
static Import = new TokenKind(39, []);
|
|
49
|
+
static As = new TokenKind(40, []);
|
|
50
|
+
static Include = new TokenKind(41, []);
|
|
51
|
+
static Module = new TokenKind(42, []);
|
|
52
|
+
static LBrace = new TokenKind(43, []);
|
|
53
|
+
static RBrace = new TokenKind(44, []);
|
|
54
|
+
static Type = new TokenKind(45, []);
|
|
55
|
+
static Typeof = new TokenKind(46, []);
|
|
56
|
+
static Nameof = new TokenKind(47, []);
|
|
57
|
+
static Of = new TokenKind(48, []);
|
|
58
|
+
static Plus = new TokenKind(49, []);
|
|
59
|
+
static Minus = new TokenKind(50, []);
|
|
60
|
+
static Star = new TokenKind(51, []);
|
|
61
|
+
static Slash = new TokenKind(52, []);
|
|
62
|
+
static Percent = new TokenKind(53, []);
|
|
63
|
+
static Less = new TokenKind(54, []);
|
|
64
|
+
static Greater = new TokenKind(55, []);
|
|
65
|
+
static LessEqual = new TokenKind(56, []);
|
|
66
|
+
static GreaterEqual = new TokenKind(57, []);
|
|
67
|
+
static AndAnd = new TokenKind(58, []);
|
|
68
|
+
static OrOr = new TokenKind(59, []);
|
|
69
|
+
static PipeForward = new TokenKind(60, []);
|
|
70
|
+
static Cons = new TokenKind(61, []);
|
|
71
|
+
static Append = new TokenKind(62, []);
|
|
15
72
|
}
|
|
16
73
|
|
|
17
74
|
export function TokenKind_$reflection() {
|