Skip to content

Commit 4b9761d

Browse files
committed
updated editor; readme. added result type
1 parent 8cbee18 commit 4b9761d

File tree

5 files changed

+14
-24
lines changed

5 files changed

+14
-24
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ print(vecs)
2626

2727
### Language Features
2828

29-
- methods
29+
- booleans
30+
- generics
31+
- builtin result type
32+
- lhs struct field assignment
33+
- testing
34+
- asserts
35+
- matches
3036
- iterators
3137
- intrinsics without the special syntax
3238
- recursion

editor/vscode/gila/gila-0.0.1.vsix

8 Bytes
Binary file not shown.

editor/vscode/gila/syntaxes/gila.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"keywords": {
2424
"patterns": [{
2525
"name": "keyword.control.gila",
26-
"match": "\\b(if|while|for|import|type|fn|return|end)\\b"
26+
"match": "\\b(test|assert|if|while|for|import|type|fn|return|end)\\b"
2727
}]
2828
},
2929
"types": {

example/test.gila

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
1-
std = import std
2-
3-
4-
Vec type
5-
x: u32
6-
end
7-
81

92

10-
foo fn(self: Vec)
11-
std.io.print("this is me:")
12-
std.io.print(self)
13-
end
14-
15-
16-
17-
v = Vec(1)
183

194

5+
std = import std
206

217

22-
required_platform = "asdg"
238

24-
if std.os.PLATFORM == required_platform
25-
std.io.print("were on windows!")
26-
else
27-
std.io.print("else")
28-
end
9+
std.io.print("result type:")
10+
std.io.print(Result)

prelude/prelude.gila

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11

2-
x = 3
2+
Result type
3+
has_result: bool
4+
end

0 commit comments

Comments
 (0)