firefly-compiler 0.6.24 → 0.6.30
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/.vscode/settings.json +1 -1
- package/compiler/Inference.ff +1 -17
- package/compiler/LspHook.ff +5 -15
- package/core/Ordering.ff +1 -1
- package/lsp/.firefly/package.ff +0 -1
- package/lsp/CompletionHandler.ff +6 -112
- package/lsp/Handler.ff +7 -205
- package/lsp/LanguageServer.ff +0 -5
- package/output/js/ff/compiler/Builder.mjs +2 -2
- package/output/js/ff/compiler/Builder.mjs.map +1 -1
- package/output/js/ff/compiler/Dependencies.mjs +2 -2
- package/output/js/ff/compiler/Dependencies.mjs.map +1 -1
- package/output/js/ff/compiler/Inference.mjs +16 -36
- package/output/js/ff/compiler/Inference.mjs.map +2 -4
- package/output/js/ff/compiler/LspHook.mjs +10 -10
- package/output/js/ff/compiler/LspHook.mjs.map +3 -4
- package/output/js/ff/compiler/Main.mjs +4 -4
- package/output/js/ff/compiler/Main.mjs.map +1 -1
- package/output/js/ff/core/Ordering.mjs +2 -2
- package/output/js/ff/core/Ordering.mjs.map +1 -1
- package/package.json +1 -1
- package/postgresql/Pg.ff +26 -49
- package/vscode/client/src/extension.ts +0 -5
- package/vscode/package.json +1 -7
- package/experimental/inceptron/Run.ff +0 -47
- package/experimental/mattis/Tree.ff +0 -44
- package/experimental/tests/TestListOrdering.ff +0 -7
- package/experimental/tests/TestOrder.ff +0 -4
- package/experimental/tests/TestSql.ff +0 -18
- package/lsp/SemanticTokenTypes.ff +0 -62
- package/lsp/Sql.ff +0 -1395
- package/lsp/SqlStatement.ff +0 -34
- package/lsp/SqlSuggestion.ff +0 -295
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
nodeMain(system: NodeSystem) {
|
|
2
|
-
|
|
3
|
-
let x: Float = 123.0
|
|
4
|
-
let s: String = "Hi"
|
|
5
|
-
let p = s + x
|
|
6
|
-
let r1: Int = 123.8.round().toInt()
|
|
7
|
-
Log.show(p)
|
|
8
|
-
|
|
9
|
-
let player = Human("RawFood23", None)
|
|
10
|
-
let bot = Bot(42)
|
|
11
|
-
|
|
12
|
-
let players: List[Player] = [
|
|
13
|
-
Human("RawFood23", None)
|
|
14
|
-
Human("Nokoline123", Some(system.date()))
|
|
15
|
-
bot
|
|
16
|
-
|
|
17
|
-
]
|
|
18
|
-
|
|
19
|
-
players.each {
|
|
20
|
-
| Human(name, None) =>
|
|
21
|
-
Log.trace(name + " is in lobby")
|
|
22
|
-
| Human(name, Some(joined)) =>
|
|
23
|
-
Log.trace(name + " joined at " + Show.show(joined))
|
|
24
|
-
| Bot(n) =>
|
|
25
|
-
Log.trace("Bot nr. " + n)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
let player2 = (name = "Jogn", age = 11)
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
addPlayer(player: Player) {
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
data Player {
|
|
37
|
-
Human(
|
|
38
|
-
name: String
|
|
39
|
-
joined: Option[Date]
|
|
40
|
-
)
|
|
41
|
-
Bot(
|
|
42
|
-
number: Int
|
|
43
|
-
)
|
|
44
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
dependency ff:postgresql:0.0.0
|
|
2
|
-
|
|
3
|
-
import Pg from ff:postgresql
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
testSql(connection: PgConnection): List[String] {
|
|
7
|
-
connection.statement("""
|
|
8
|
-
-- Comment
|
|
9
|
-
select *, benefit, g.deleted, 'Fooo', 123
|
|
10
|
-
from guide."GuideHistory" g
|
|
11
|
-
join guide."GuideDepartment" GD on g.id = GD.guideid
|
|
12
|
-
where g.benefit is not null and $name = '0x42' and true
|
|
13
|
-
""")
|
|
14
|
-
.withInt("name", 34)
|
|
15
|
-
.map {row =>
|
|
16
|
-
row.getString("name").grab()
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
data SemanticTokenTypes(
|
|
2
|
-
namespace: Pair[String, Int]
|
|
3
|
-
type: Pair[String, Int]
|
|
4
|
-
class: Pair[String, Int]
|
|
5
|
-
enum: Pair[String, Int]
|
|
6
|
-
interface: Pair[String, Int]
|
|
7
|
-
struct: Pair[String, Int]
|
|
8
|
-
typeParameter: Pair[String, Int]
|
|
9
|
-
parameter: Pair[String, Int]
|
|
10
|
-
variable: Pair[String, Int]
|
|
11
|
-
property: Pair[String, Int]
|
|
12
|
-
enumMember: Pair[String, Int]
|
|
13
|
-
event: Pair[String, Int]
|
|
14
|
-
function: Pair[String, Int]
|
|
15
|
-
method: Pair[String, Int]
|
|
16
|
-
macro: Pair[String, Int]
|
|
17
|
-
keyword: Pair[String, Int]
|
|
18
|
-
modifier: Pair[String, Int]
|
|
19
|
-
comment: Pair[String, Int]
|
|
20
|
-
string: Pair[String, Int]
|
|
21
|
-
number: Pair[String, Int]
|
|
22
|
-
regexp: Pair[String, Int]
|
|
23
|
-
operator: Pair[String, Int]
|
|
24
|
-
decorator: Pair[String, Int]
|
|
25
|
-
label: Pair[String, Int]
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
new(): Pair[SemanticTokenTypes, List[String]] {
|
|
29
|
-
let names = Array.new()
|
|
30
|
-
function add(name: String): Pair[String, Int] {
|
|
31
|
-
let index = names.size()
|
|
32
|
-
names.push(name)
|
|
33
|
-
Pair(name, index)
|
|
34
|
-
}
|
|
35
|
-
let types = SemanticTokenTypes(
|
|
36
|
-
namespace = add("namespace")
|
|
37
|
-
type = add("type")
|
|
38
|
-
class = add("class")
|
|
39
|
-
enum = add("enum")
|
|
40
|
-
interface = add("interface")
|
|
41
|
-
struct = add("struct")
|
|
42
|
-
typeParameter = add("typeParameter")
|
|
43
|
-
parameter = add("parameter")
|
|
44
|
-
variable = add("variable")
|
|
45
|
-
property = add("property")
|
|
46
|
-
enumMember = add("enumMember")
|
|
47
|
-
event = add("event")
|
|
48
|
-
function = add("function")
|
|
49
|
-
method = add("method")
|
|
50
|
-
macro = add("macro")
|
|
51
|
-
keyword = add("keyword")
|
|
52
|
-
modifier = add("modifier")
|
|
53
|
-
comment = add("comment")
|
|
54
|
-
string = add("string")
|
|
55
|
-
number = add("number")
|
|
56
|
-
regexp = add("regexp")
|
|
57
|
-
operator = add("operator")
|
|
58
|
-
decorator = add("decorator")
|
|
59
|
-
label = add("label")
|
|
60
|
-
)
|
|
61
|
-
Pair(types, names.drain())
|
|
62
|
-
}
|