firefly-compiler 0.4.23 → 0.4.25
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/bin/firefly.mjs +2 -0
- package/compiler/Builder.ff +14 -1
- package/compiler/Compiler.ff +13 -40
- package/compiler/Main.ff +15 -1
- package/compiler/ModuleCache.ff +160 -0
- package/core/Map.ff +8 -0
- package/core/Path.ff +4 -0
- package/experimental/bidirectional/Bidi.ff +88 -0
- package/lsp/Handler.ff +109 -37
- package/lsp/LanguageServer.ff +12 -8
- package/lsp/TestReferences.ff +3 -1
- package/lux/.firefly/package.ff +0 -1
- package/output/js/ff/compiler/Builder.mjs +30 -16
- package/output/js/ff/compiler/Compiler.mjs +29 -67
- package/output/js/ff/compiler/Dependencies.mjs +0 -2
- package/output/js/ff/compiler/Deriver.mjs +0 -2
- package/output/js/ff/compiler/Dictionaries.mjs +0 -2
- package/output/js/ff/compiler/Environment.mjs +0 -2
- package/output/js/ff/compiler/Inference.mjs +0 -2
- package/output/js/ff/compiler/JsEmitter.mjs +0 -2
- package/output/js/ff/compiler/JsImporter.mjs +0 -2
- package/output/js/ff/compiler/LspHook.mjs +0 -2
- package/output/js/ff/compiler/Main.mjs +8 -8
- package/output/js/ff/compiler/ModuleCache.mjs +428 -0
- package/output/js/ff/compiler/Parser.mjs +0 -2
- package/output/js/ff/compiler/Patterns.mjs +0 -2
- package/output/js/ff/compiler/Resolver.mjs +0 -2
- package/output/js/ff/compiler/Substitution.mjs +0 -2
- package/output/js/ff/compiler/Syntax.mjs +0 -2
- package/output/js/ff/compiler/Token.mjs +0 -2
- package/output/js/ff/compiler/Tokenizer.mjs +0 -2
- package/output/js/ff/compiler/Unification.mjs +0 -2
- package/output/js/ff/compiler/Wildcards.mjs +0 -2
- package/output/js/ff/compiler/Workspace.mjs +0 -2
- package/output/js/ff/core/Any.mjs +0 -2
- package/output/js/ff/core/Array.mjs +0 -2
- package/output/js/ff/core/AssetSystem.mjs +0 -2
- package/output/js/ff/core/Atomic.mjs +0 -2
- package/output/js/ff/core/Bool.mjs +0 -2
- package/output/js/ff/core/BrowserSystem.mjs +0 -2
- package/output/js/ff/core/Buffer.mjs +0 -2
- package/output/js/ff/core/BuildSystem.mjs +0 -2
- package/output/js/ff/core/Channel.mjs +0 -2
- package/output/js/ff/core/Char.mjs +0 -2
- package/output/js/ff/core/Core.mjs +0 -2
- package/output/js/ff/core/Duration.mjs +0 -2
- package/output/js/ff/core/Equal.mjs +0 -2
- package/output/js/ff/core/Error.mjs +0 -2
- package/output/js/ff/core/FileHandle.mjs +0 -2
- package/output/js/ff/core/Float.mjs +0 -2
- package/output/js/ff/core/HttpClient.mjs +0 -2
- package/output/js/ff/core/Instant.mjs +0 -2
- package/output/js/ff/core/Int.mjs +0 -2
- package/output/js/ff/core/IntMap.mjs +0 -2
- package/output/js/ff/core/JsSystem.mjs +0 -2
- package/output/js/ff/core/JsValue.mjs +0 -2
- package/output/js/ff/core/Json.mjs +0 -2
- package/output/js/ff/core/List.mjs +0 -2
- package/output/js/ff/core/Lock.mjs +0 -2
- package/output/js/ff/core/Log.mjs +0 -2
- package/output/js/ff/core/Map.mjs +16 -2
- package/output/js/ff/core/NodeSystem.mjs +0 -2
- package/output/js/ff/core/Nothing.mjs +0 -2
- package/output/js/ff/core/Option.mjs +0 -2
- package/output/js/ff/core/Ordering.mjs +0 -2
- package/output/js/ff/core/Pair.mjs +0 -2
- package/output/js/ff/core/Path.mjs +12 -2
- package/output/js/ff/core/Random.mjs +0 -2
- package/output/js/ff/core/RbMap.mjs +0 -2
- package/output/js/ff/core/Serializable.mjs +0 -2
- package/output/js/ff/core/Set.mjs +0 -2
- package/output/js/ff/core/Show.mjs +0 -2
- package/output/js/ff/core/SourceLocation.mjs +0 -2
- package/output/js/ff/core/Stream.mjs +0 -2
- package/output/js/ff/core/String.mjs +0 -2
- package/output/js/ff/core/StringMap.mjs +0 -2
- package/output/js/ff/core/Task.mjs +0 -2
- package/output/js/ff/core/Try.mjs +0 -2
- package/output/js/ff/core/Unit.mjs +0 -2
- package/package.json +1 -1
- package/vscode/README.md +3 -1
- package/vscode/client/src/extension.ts +4 -3
- package/vscode/package.json +1 -1
- package/output/js/ff/core/Box.mjs +0 -114
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -145,6 +143,14 @@ result_ = ff_core_RbMap.delete_(k_, result_, ff_core_Ordering_Order$K)
|
|
|
145
143
|
return result_
|
|
146
144
|
}
|
|
147
145
|
|
|
146
|
+
export function Map_removeList(self_, keys_, ff_core_Ordering_Order$K) {
|
|
147
|
+
let result_ = self_;
|
|
148
|
+
ff_core_List.List_each(keys_, ((k_) => {
|
|
149
|
+
result_ = ff_core_RbMap.delete_(k_, result_, ff_core_Ordering_Order$K)
|
|
150
|
+
}));
|
|
151
|
+
return result_
|
|
152
|
+
}
|
|
153
|
+
|
|
148
154
|
export function Map_pairs(self_, ff_core_Ordering_Order$K) {
|
|
149
155
|
return ff_core_Map.Map_toList(self_, ff_core_Ordering_Order$K)
|
|
150
156
|
}
|
|
@@ -255,6 +261,14 @@ result_ = ff_core_RbMap.delete_(k_, result_, ff_core_Ordering_Order$K)
|
|
|
255
261
|
return result_
|
|
256
262
|
}
|
|
257
263
|
|
|
264
|
+
export async function Map_removeList$(self_, keys_, ff_core_Ordering_Order$K, $task) {
|
|
265
|
+
let result_ = self_;
|
|
266
|
+
ff_core_List.List_each(keys_, ((k_) => {
|
|
267
|
+
result_ = ff_core_RbMap.delete_(k_, result_, ff_core_Ordering_Order$K)
|
|
268
|
+
}));
|
|
269
|
+
return result_
|
|
270
|
+
}
|
|
271
|
+
|
|
258
272
|
export async function Map_pairs$(self_, ff_core_Ordering_Order$K, $task) {
|
|
259
273
|
return ff_core_Map.Map_toList(self_, ff_core_Ordering_Order$K)
|
|
260
274
|
}
|
|
@@ -14,8 +14,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
14
14
|
|
|
15
15
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
16
16
|
|
|
17
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
18
|
-
|
|
19
17
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
20
18
|
|
|
21
19
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -16,8 +16,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
16
16
|
|
|
17
17
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
18
18
|
|
|
19
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
20
|
-
|
|
21
19
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
22
20
|
|
|
23
21
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -226,6 +224,12 @@ return false
|
|
|
226
224
|
return go_(ff_core_Option.Some(self_), ff_core_List.List_reverse(parts_))
|
|
227
225
|
}
|
|
228
226
|
|
|
227
|
+
export function Path_contains(self_, parts_) {
|
|
228
|
+
return (ff_core_Path.Path_endsWith(self_, parts_) || ff_core_Option.Option_any(ff_core_Path.Path_parent(self_), ((_w1) => {
|
|
229
|
+
return ff_core_Path.Path_contains(_w1, parts_)
|
|
230
|
+
})))
|
|
231
|
+
}
|
|
232
|
+
|
|
229
233
|
export function Path_base(self_) {
|
|
230
234
|
throw new Error('Function Path_base is missing on this target in sync context.');
|
|
231
235
|
}
|
|
@@ -477,6 +481,12 @@ return false
|
|
|
477
481
|
return (await go_$(ff_core_Option.Some(self_), ff_core_List.List_reverse(parts_), $task))
|
|
478
482
|
}
|
|
479
483
|
|
|
484
|
+
export async function Path_contains$(self_, parts_, $task) {
|
|
485
|
+
return ((await ff_core_Path.Path_endsWith$(self_, parts_, $task)) || (await ff_core_Option.Option_any$((await ff_core_Path.Path_parent$(self_, $task)), (async (_w1, $task) => {
|
|
486
|
+
return (await ff_core_Path.Path_contains$(_w1, parts_, $task))
|
|
487
|
+
}), $task)))
|
|
488
|
+
}
|
|
489
|
+
|
|
480
490
|
export async function Path_base$(self_, $task) {
|
|
481
491
|
|
|
482
492
|
const path = import$2
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -12,8 +12,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
12
12
|
|
|
13
13
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
14
14
|
|
|
15
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
16
|
-
|
|
17
15
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
18
16
|
|
|
19
17
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
@@ -10,8 +10,6 @@ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
|
10
10
|
|
|
11
11
|
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
12
|
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
13
|
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
14
|
|
|
17
15
|
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
package/package.json
CHANGED
package/vscode/README.md
CHANGED
|
@@ -10,5 +10,7 @@ This extension adds support for the Firefly programming language (`.ff` files).
|
|
|
10
10
|
- Document and workspace symbols
|
|
11
11
|
- Show type on hover
|
|
12
12
|
- Diagnostics
|
|
13
|
+
- Run in terminal
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
To install the Firefly compiler, run the following command in the terminal:
|
|
16
|
+
```npm install -g firefly-compiler```
|
|
@@ -69,9 +69,10 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
69
69
|
|
|
70
70
|
const clientOptions: LanguageClientOptions = {
|
|
71
71
|
documentSelector: [{ scheme: 'file', language: 'firefly' }],
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
synchronize: {
|
|
73
|
+
// It would be more portable to send a client/registerCapability from the server for this
|
|
74
|
+
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.ff')
|
|
75
|
+
}
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
client = new LanguageClient(
|
package/vscode/package.json
CHANGED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as ff_core_Any from "../../ff/core/Any.mjs"
|
|
4
|
-
|
|
5
|
-
import * as ff_core_Array from "../../ff/core/Array.mjs"
|
|
6
|
-
|
|
7
|
-
import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
|
|
8
|
-
|
|
9
|
-
import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
|
|
10
|
-
|
|
11
|
-
import * as ff_core_Bool from "../../ff/core/Bool.mjs"
|
|
12
|
-
|
|
13
|
-
import * as ff_core_Box from "../../ff/core/Box.mjs"
|
|
14
|
-
|
|
15
|
-
import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
|
|
16
|
-
|
|
17
|
-
import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
|
|
18
|
-
|
|
19
|
-
import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
|
|
20
|
-
|
|
21
|
-
import * as ff_core_Channel from "../../ff/core/Channel.mjs"
|
|
22
|
-
|
|
23
|
-
import * as ff_core_Char from "../../ff/core/Char.mjs"
|
|
24
|
-
|
|
25
|
-
import * as ff_core_Core from "../../ff/core/Core.mjs"
|
|
26
|
-
|
|
27
|
-
import * as ff_core_Duration from "../../ff/core/Duration.mjs"
|
|
28
|
-
|
|
29
|
-
import * as ff_core_Equal from "../../ff/core/Equal.mjs"
|
|
30
|
-
|
|
31
|
-
import * as ff_core_Error from "../../ff/core/Error.mjs"
|
|
32
|
-
|
|
33
|
-
import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
|
|
34
|
-
|
|
35
|
-
import * as ff_core_Float from "../../ff/core/Float.mjs"
|
|
36
|
-
|
|
37
|
-
import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
|
|
38
|
-
|
|
39
|
-
import * as ff_core_Instant from "../../ff/core/Instant.mjs"
|
|
40
|
-
|
|
41
|
-
import * as ff_core_Int from "../../ff/core/Int.mjs"
|
|
42
|
-
|
|
43
|
-
import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
|
|
44
|
-
|
|
45
|
-
import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
|
|
46
|
-
|
|
47
|
-
import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
|
|
48
|
-
|
|
49
|
-
import * as ff_core_Json from "../../ff/core/Json.mjs"
|
|
50
|
-
|
|
51
|
-
import * as ff_core_List from "../../ff/core/List.mjs"
|
|
52
|
-
|
|
53
|
-
import * as ff_core_Lock from "../../ff/core/Lock.mjs"
|
|
54
|
-
|
|
55
|
-
import * as ff_core_Log from "../../ff/core/Log.mjs"
|
|
56
|
-
|
|
57
|
-
import * as ff_core_Map from "../../ff/core/Map.mjs"
|
|
58
|
-
|
|
59
|
-
import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
|
|
60
|
-
|
|
61
|
-
import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
|
|
62
|
-
|
|
63
|
-
import * as ff_core_Option from "../../ff/core/Option.mjs"
|
|
64
|
-
|
|
65
|
-
import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
|
|
66
|
-
|
|
67
|
-
import * as ff_core_Pair from "../../ff/core/Pair.mjs"
|
|
68
|
-
|
|
69
|
-
import * as ff_core_Path from "../../ff/core/Path.mjs"
|
|
70
|
-
|
|
71
|
-
import * as ff_core_Random from "../../ff/core/Random.mjs"
|
|
72
|
-
|
|
73
|
-
import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
|
|
74
|
-
|
|
75
|
-
import * as ff_core_Set from "../../ff/core/Set.mjs"
|
|
76
|
-
|
|
77
|
-
import * as ff_core_Show from "../../ff/core/Show.mjs"
|
|
78
|
-
|
|
79
|
-
import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
|
|
80
|
-
|
|
81
|
-
import * as ff_core_Stream from "../../ff/core/Stream.mjs"
|
|
82
|
-
|
|
83
|
-
import * as ff_core_String from "../../ff/core/String.mjs"
|
|
84
|
-
|
|
85
|
-
import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
|
|
86
|
-
|
|
87
|
-
import * as ff_core_Task from "../../ff/core/Task.mjs"
|
|
88
|
-
|
|
89
|
-
import * as ff_core_Try from "../../ff/core/Try.mjs"
|
|
90
|
-
|
|
91
|
-
import * as ff_core_Unit from "../../ff/core/Unit.mjs"
|
|
92
|
-
|
|
93
|
-
// type Box
|
|
94
|
-
export function Box(value_) {
|
|
95
|
-
return {value_};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
export function Box_modify(self_, body_) {
|
|
105
|
-
self_.value_ = body_(self_.value_)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export async function Box_modify$(self_, body_, $task) {
|
|
109
|
-
self_.value_ = (await body_(self_.value_, $task))
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|