firefly-compiler 0.4.4 → 0.4.5

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 (90) hide show
  1. package/.hintrc +5 -0
  2. package/README.md +42 -61
  3. package/compiler/Compiler.ff +6 -2
  4. package/compiler/Deriver.ff +10 -0
  5. package/compiler/Environment.ff +2 -1
  6. package/compiler/JsEmitter.ff +29 -17
  7. package/compiler/Resolver.ff +1 -1
  8. package/core/.firefly/package.ff +1 -2
  9. package/core/Box.ff +7 -0
  10. package/core/BuildSystem.ff +5 -4
  11. package/core/Core.ff +4 -0
  12. package/core/JsValue.ff +22 -1
  13. package/core/Lock.ff +4 -4
  14. package/core/NodeSystem.ff +12 -3
  15. package/core/Path.ff +1 -1
  16. package/core/SourceLocation.ff +41 -0
  17. package/core/Stack.ff +6 -6
  18. package/core/StringMap.ff +3 -3
  19. package/lux/.firefly/package.ff +2 -0
  20. package/lux/Lux.ff +473 -0
  21. package/lux/LuxEvent.ff +116 -0
  22. package/lux/Main.ff +72 -0
  23. package/lux/Main2.ff +144 -0
  24. package/output/js/ff/compiler/Builder.mjs +4 -0
  25. package/output/js/ff/compiler/Compiler.mjs +11 -5
  26. package/output/js/ff/compiler/Dependencies.mjs +4 -0
  27. package/output/js/ff/compiler/Deriver.mjs +8 -4
  28. package/output/js/ff/compiler/Dictionaries.mjs +4 -0
  29. package/output/js/ff/compiler/Environment.mjs +12 -2
  30. package/output/js/ff/compiler/Inference.mjs +4 -0
  31. package/output/js/ff/compiler/JsEmitter.mjs +78 -40
  32. package/output/js/ff/compiler/JsImporter.mjs +4 -0
  33. package/output/js/ff/compiler/LspHook.mjs +4 -0
  34. package/output/js/ff/compiler/Main.mjs +28 -24
  35. package/output/js/ff/compiler/Parser.mjs +4 -0
  36. package/output/js/ff/compiler/Patterns.mjs +4 -0
  37. package/output/js/ff/compiler/Resolver.mjs +6 -2
  38. package/output/js/ff/compiler/Substitution.mjs +4 -0
  39. package/output/js/ff/compiler/Syntax.mjs +4 -0
  40. package/output/js/ff/compiler/Token.mjs +4 -0
  41. package/output/js/ff/compiler/Tokenizer.mjs +4 -0
  42. package/output/js/ff/compiler/Unification.mjs +4 -0
  43. package/output/js/ff/compiler/Wildcards.mjs +4 -0
  44. package/output/js/ff/compiler/Workspace.mjs +4 -0
  45. package/output/js/ff/core/Any.mjs +4 -0
  46. package/output/js/ff/core/Array.mjs +4 -0
  47. package/output/js/ff/core/AssetSystem.mjs +4 -0
  48. package/output/js/ff/core/Atomic.mjs +4 -0
  49. package/output/js/ff/core/Bool.mjs +12 -1
  50. package/output/js/ff/core/Box.mjs +112 -0
  51. package/output/js/ff/core/BrowserSystem.mjs +4 -0
  52. package/output/js/ff/core/Buffer.mjs +4 -0
  53. package/output/js/ff/core/BuildSystem.mjs +14 -8
  54. package/output/js/ff/core/Channel.mjs +4 -0
  55. package/output/js/ff/core/Char.mjs +4 -0
  56. package/output/js/ff/core/Core.mjs +12 -0
  57. package/output/js/ff/core/Duration.mjs +4 -0
  58. package/output/js/ff/core/Equal.mjs +4 -0
  59. package/output/js/ff/core/Error.mjs +4 -0
  60. package/output/js/ff/core/FileHandle.mjs +4 -0
  61. package/output/js/ff/core/Float.mjs +12 -1
  62. package/output/js/ff/core/HttpClient.mjs +4 -0
  63. package/output/js/ff/core/Instant.mjs +4 -0
  64. package/output/js/ff/core/Int.mjs +12 -1
  65. package/output/js/ff/core/IntMap.mjs +4 -0
  66. package/output/js/ff/core/JsSystem.mjs +4 -0
  67. package/output/js/ff/core/JsValue.mjs +50 -0
  68. package/output/js/ff/core/List.mjs +13 -0
  69. package/output/js/ff/core/Lock.mjs +11 -7
  70. package/output/js/ff/core/Log.mjs +4 -0
  71. package/output/js/ff/core/Map.mjs +4 -0
  72. package/output/js/ff/core/NodeSystem.mjs +33 -14
  73. package/output/js/ff/core/Nothing.mjs +4 -0
  74. package/output/js/ff/core/Option.mjs +13 -0
  75. package/output/js/ff/core/Ordering.mjs +4 -0
  76. package/output/js/ff/core/Pair.mjs +13 -0
  77. package/output/js/ff/core/Path.mjs +5 -1
  78. package/output/js/ff/core/RbMap.mjs +24 -20
  79. package/output/js/ff/core/Serializable.mjs +4 -0
  80. package/output/js/ff/core/Set.mjs +4 -0
  81. package/output/js/ff/core/Show.mjs +4 -0
  82. package/output/js/ff/core/SourceLocation.mjs +229 -0
  83. package/output/js/ff/core/Stack.mjs +10 -6
  84. package/output/js/ff/core/Stream.mjs +4 -0
  85. package/output/js/ff/core/String.mjs +12 -1
  86. package/output/js/ff/core/StringMap.mjs +5 -1
  87. package/output/js/ff/core/Task.mjs +4 -0
  88. package/output/js/ff/core/Try.mjs +4 -0
  89. package/output/js/ff/core/Unit.mjs +49 -1
  90. package/package.json +1 -1
@@ -10,6 +10,8 @@ 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
+
13
15
  import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
14
16
 
15
17
  import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
@@ -70,6 +72,8 @@ import * as ff_core_Set from "../../ff/core/Set.mjs"
70
72
 
71
73
  import * as ff_core_Show from "../../ff/core/Show.mjs"
72
74
 
75
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
+
73
77
  import * as ff_core_Stack from "../../ff/core/Stack.mjs"
74
78
 
75
79
  import * as ff_core_Stream from "../../ff/core/Stream.mjs"
@@ -98,6 +102,50 @@ return Unit$;
98
102
 
99
103
 
100
104
 
101
-
105
+ export const ff_core_Any_HasAnyTag$ff_core_Unit_Unit = {
106
+ anyTag_() {
107
+ return ff_core_Any.internalAnyTag_((("ff:core/Unit.Unit" + "[") + "]"))
108
+ },
109
+ async anyTag_$($task) {
110
+ return ff_core_Any.internalAnyTag_((("ff:core/Unit.Unit" + "[") + "]"))
111
+ }
112
+ };
113
+
114
+ export const ff_core_Equal_Equal$ff_core_Unit_Unit = {
115
+ equals_(x_, y_) {
116
+ {
117
+ const x_a = x_;
118
+ const y_a = y_;
119
+ {
120
+ const _guard1 = (x_ === y_);
121
+ if(_guard1) {
122
+ return true
123
+ return
124
+ }
125
+ }
126
+ {
127
+ return true
128
+ return
129
+ }
130
+ }
131
+ },
132
+ async equals_$(x_, y_, $task) {
133
+ {
134
+ const x_a = x_;
135
+ const y_a = y_;
136
+ {
137
+ const _guard1 = (x_ === y_);
138
+ if(_guard1) {
139
+ return true
140
+ return
141
+ }
142
+ }
143
+ {
144
+ return true
145
+ return
146
+ }
147
+ }
148
+ }
149
+ };
102
150
 
103
151
 
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.4",
7
+ "version": "0.4.5",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"