~repos /plum
git clone https://pyrossh.dev/repos/plum.git
A statically typed, imperative programming language inspired by rust, python
d357000b
—
pyrossh 11 months ago
add helix
- libs/std/bool.plum +2 -2
- tooling/tree-sitter-plum/.gitignore +2 -7
- tooling/tree-sitter-plum/.helix/languages.toml +11 -0
- tooling/tree-sitter-plum/plum.dylib +0 -0
- tooling/tree-sitter-plum/queries/{highlights.scm → plum/highlights.scm} +0 -0
- tooling/tree-sitter-plum/queries/{tags.scm → plum/tags.scm} +0 -0
- tooling/tree-sitter-plum/test/aa.plum +1 -1
libs/std/bool.plum
CHANGED
|
@@ -2,10 +2,10 @@ module std
|
|
|
2
2
|
|
|
3
3
|
type Int
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
add<Int>(b: Int) -> Int =
|
|
6
6
|
return this + b
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
sub<Int>(b: Int) -> Int =
|
|
9
9
|
return this - b
|
|
10
10
|
|
|
11
11
|
enum Bool =
|
tooling/tree-sitter-plum/.gitignore
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
Cargo.lock
|
|
2
|
-
package-lock.json
|
|
3
|
-
|
|
1
|
+
plum.dylib
|
|
4
|
-
|
|
2
|
+
plum.so
|
|
5
|
-
*.log
|
|
6
|
-
/examples/*/
|
|
7
|
-
/target/
|
tooling/tree-sitter-plum/.helix/languages.toml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[[language]]
|
|
2
|
+
name = "plum"
|
|
3
|
+
scope = "source.plum"
|
|
4
|
+
injection-regex = "plum"
|
|
5
|
+
file-types = ["plum"]
|
|
6
|
+
comment-tokens = "#"
|
|
7
|
+
indent = { tab-width = 2, unit = " " }
|
|
8
|
+
|
|
9
|
+
[[grammar]]
|
|
10
|
+
name = "plum"
|
|
11
|
+
source.path = "/Users/pyrossh/Code/pyrossh/plum/tooling/tree-sitter-plum"
|
tooling/tree-sitter-plum/plum.dylib
DELETED
|
Binary file
|
tooling/tree-sitter-plum/queries/{highlights.scm → plum/highlights.scm}
RENAMED
|
File without changes
|
tooling/tree-sitter-plum/queries/{tags.scm → plum/tags.scm}
RENAMED
|
File without changes
|
tooling/tree-sitter-plum/test/aa.plum
CHANGED
|
@@ -14,4 +14,4 @@ toStr<Cat>() -> Str =
|
|
|
14
14
|
"Cat({self.name}, {self.age})"
|
|
15
15
|
|
|
16
16
|
main() =
|
|
17
|
-
printLn("Hello world")
|
|
17
|
+
printLn("Hello world")
|