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.
Files changed (84) hide show
  1. package/bin/firefly.mjs +2 -0
  2. package/compiler/Builder.ff +14 -1
  3. package/compiler/Compiler.ff +13 -40
  4. package/compiler/Main.ff +15 -1
  5. package/compiler/ModuleCache.ff +160 -0
  6. package/core/Map.ff +8 -0
  7. package/core/Path.ff +4 -0
  8. package/experimental/bidirectional/Bidi.ff +88 -0
  9. package/lsp/Handler.ff +109 -37
  10. package/lsp/LanguageServer.ff +12 -8
  11. package/lsp/TestReferences.ff +3 -1
  12. package/lux/.firefly/package.ff +0 -1
  13. package/output/js/ff/compiler/Builder.mjs +30 -16
  14. package/output/js/ff/compiler/Compiler.mjs +29 -67
  15. package/output/js/ff/compiler/Dependencies.mjs +0 -2
  16. package/output/js/ff/compiler/Deriver.mjs +0 -2
  17. package/output/js/ff/compiler/Dictionaries.mjs +0 -2
  18. package/output/js/ff/compiler/Environment.mjs +0 -2
  19. package/output/js/ff/compiler/Inference.mjs +0 -2
  20. package/output/js/ff/compiler/JsEmitter.mjs +0 -2
  21. package/output/js/ff/compiler/JsImporter.mjs +0 -2
  22. package/output/js/ff/compiler/LspHook.mjs +0 -2
  23. package/output/js/ff/compiler/Main.mjs +8 -8
  24. package/output/js/ff/compiler/ModuleCache.mjs +428 -0
  25. package/output/js/ff/compiler/Parser.mjs +0 -2
  26. package/output/js/ff/compiler/Patterns.mjs +0 -2
  27. package/output/js/ff/compiler/Resolver.mjs +0 -2
  28. package/output/js/ff/compiler/Substitution.mjs +0 -2
  29. package/output/js/ff/compiler/Syntax.mjs +0 -2
  30. package/output/js/ff/compiler/Token.mjs +0 -2
  31. package/output/js/ff/compiler/Tokenizer.mjs +0 -2
  32. package/output/js/ff/compiler/Unification.mjs +0 -2
  33. package/output/js/ff/compiler/Wildcards.mjs +0 -2
  34. package/output/js/ff/compiler/Workspace.mjs +0 -2
  35. package/output/js/ff/core/Any.mjs +0 -2
  36. package/output/js/ff/core/Array.mjs +0 -2
  37. package/output/js/ff/core/AssetSystem.mjs +0 -2
  38. package/output/js/ff/core/Atomic.mjs +0 -2
  39. package/output/js/ff/core/Bool.mjs +0 -2
  40. package/output/js/ff/core/BrowserSystem.mjs +0 -2
  41. package/output/js/ff/core/Buffer.mjs +0 -2
  42. package/output/js/ff/core/BuildSystem.mjs +0 -2
  43. package/output/js/ff/core/Channel.mjs +0 -2
  44. package/output/js/ff/core/Char.mjs +0 -2
  45. package/output/js/ff/core/Core.mjs +0 -2
  46. package/output/js/ff/core/Duration.mjs +0 -2
  47. package/output/js/ff/core/Equal.mjs +0 -2
  48. package/output/js/ff/core/Error.mjs +0 -2
  49. package/output/js/ff/core/FileHandle.mjs +0 -2
  50. package/output/js/ff/core/Float.mjs +0 -2
  51. package/output/js/ff/core/HttpClient.mjs +0 -2
  52. package/output/js/ff/core/Instant.mjs +0 -2
  53. package/output/js/ff/core/Int.mjs +0 -2
  54. package/output/js/ff/core/IntMap.mjs +0 -2
  55. package/output/js/ff/core/JsSystem.mjs +0 -2
  56. package/output/js/ff/core/JsValue.mjs +0 -2
  57. package/output/js/ff/core/Json.mjs +0 -2
  58. package/output/js/ff/core/List.mjs +0 -2
  59. package/output/js/ff/core/Lock.mjs +0 -2
  60. package/output/js/ff/core/Log.mjs +0 -2
  61. package/output/js/ff/core/Map.mjs +16 -2
  62. package/output/js/ff/core/NodeSystem.mjs +0 -2
  63. package/output/js/ff/core/Nothing.mjs +0 -2
  64. package/output/js/ff/core/Option.mjs +0 -2
  65. package/output/js/ff/core/Ordering.mjs +0 -2
  66. package/output/js/ff/core/Pair.mjs +0 -2
  67. package/output/js/ff/core/Path.mjs +12 -2
  68. package/output/js/ff/core/Random.mjs +0 -2
  69. package/output/js/ff/core/RbMap.mjs +0 -2
  70. package/output/js/ff/core/Serializable.mjs +0 -2
  71. package/output/js/ff/core/Set.mjs +0 -2
  72. package/output/js/ff/core/Show.mjs +0 -2
  73. package/output/js/ff/core/SourceLocation.mjs +0 -2
  74. package/output/js/ff/core/Stream.mjs +0 -2
  75. package/output/js/ff/core/String.mjs +0 -2
  76. package/output/js/ff/core/StringMap.mjs +0 -2
  77. package/output/js/ff/core/Task.mjs +0 -2
  78. package/output/js/ff/core/Try.mjs +0 -2
  79. package/output/js/ff/core/Unit.mjs +0 -2
  80. package/package.json +1 -1
  81. package/vscode/README.md +3 -1
  82. package/vscode/client/src/extension.ts +4 -3
  83. package/vscode/package.json +1 -1
  84. 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
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.23",
7
+ "version": "0.4.25",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
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
- You can run `.ff` main files via the usual *Run and Debug* side panel - just choose *create a launch.json file*. After that you can also press *F5* to run the currently open file.
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
- //synchronize: {
73
- // fileEvents: vscode.workspace.createFileSystemWatcher('**/.clientrc')
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(
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.23",
7
+ "version": "0.4.25",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -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
-