Skip to content

Commit f44e491

Browse files
chore(language): update code_jule (@adamperkowski) (monkeytypegame#7097)
### Description there's been some changes to Jule since it's been added here rso this PR updates everything to the latest version ### Checks - [x] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.
1 parent 8db1140 commit f44e491

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

frontend/static/languages/code_jule.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,20 @@
4040
"u64",
4141
"f32",
4242
"f64",
43+
"cmplx64",
44+
"cmplx128",
4345
"bool",
4446
"str",
47+
"any",
4548
"byte",
4649
"rune",
47-
"static",
4850
"const",
4951
"mut",
5052
"self",
5153
"true",
5254
"false",
5355
"nil",
56+
"iota",
5457
"#build",
5558
"#typedef",
5659
"#cdef",

frontend/static/quotes/code_jule.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@
110110
"id": 17
111111
},
112112
{
113-
"text": "struct Dog {\n\tname: str\n\twords: str = \"woof woof\"\n}\n\nimpl Dog {\n static fn spawn(name: str): Dog {\n\t\tret Dog { name: name }\n }\n\n\tfn voice(self) {\n\t\tprintln(self.name + \" - \" + self.words)\n\t}\n}\n\nfn main() {\n\tdog0 := Dog.spawn(\"Rex\")\n\tdog1 := Dog.spawn(\"Buddy\")\n\n\tprintln(dog0.name)\n\n\tdog0.voice()\n\tdog1.voice()\n}",
113+
"text": "struct Dog {\n\tname: str\n\twords: str = \"woof woof\"\n}\n\nimpl Dog {\n\tstatic fn spawn(name: str): Dog {\n\t\tret Dog { name: name }\n\t}\n\n\tfn voice(*self) {\n\t\tprintln(self.name + \" - \" + self.words)\n\t}\n}\n\nfn main() {\n\tdog0 := Dog.spawn(\"Rex\")\n\tdog1 := Dog.spawn(\"Buddy\")\n\n\tprintln(dog0.name)\n\n\tdog0.voice()\n\tdog1.voice()\n}",
114114
"source": "Common Concepts - Structures | manual.jule.dev",
115-
"length": 317,
115+
"length": 312,
116116
"id": 18
117117
},
118118
{
@@ -134,9 +134,9 @@
134134
"id": 21
135135
},
136136
{
137-
"text": "type Int: int\n\nimpl Int {\n\tfn IsEven(self): bool { ret self%2 == 0 }\n\tfn IsOdd(self): bool { ret self%2 == 1 }\n}\n\nfn main() {\n\tx := Int(20)\n\tprintln(x.IsEven())\n\tprintln(x.IsOdd())\n}",
137+
"text": "type Int: int\n\nimpl Int {\n\tfn IsEven(*self): bool { ret self%2 == 0 }\n\tfn IsOdd(*self): bool { ret self%2 == 1 }\n}\n\nfn main() {\n\tx := Int(20)\n\tprintln(x.IsEven())\n\tprintln(x.IsOdd())\n}",
138138
"source": "Types - Aliasing | manual.jule.dev",
139-
"length": 182,
139+
"length": 184,
140140
"id": 22
141141
},
142142
{
@@ -146,9 +146,9 @@
146146
"id": 23
147147
},
148148
{
149-
"text": "trait Foo {\n fn foo(self)\n}\n\ntrait Bar {\n fn bar(self)\n}\n\ntrait FooBar {\n Foo\n Bar\n}\n\nstruct Baz {}\n\nimpl FooBar for Baz {\n fn foo(self) { println(\"foo\") }\n fn bar(self) { println(\"bar\") }\n}\n\nfn main() {\n let a: FooBar = Baz{}\n a.foo()\n a.bar()\n let b: Foo = a\n b.foo()\n let c: Bar = a\n c.bar()\n}",
149+
"text": "trait Foo {\n\tfn foo(*self)\n}\n\ntrait Bar {\n\tfn bar(*self)\n}\n\ntrait FooBar {\n\tFoo\n\tBar\n}\n\nstruct Baz {}\n\nimpl FooBar for Baz {\n\tfn foo(*self) { println(\"foo\") }\n\tfn bar(*self) { println(\"bar\") }\n}\n\nfn main() {\n\tlet a: FooBar = Baz{}\n\ta.foo()\n\ta.bar()\n\tlet b: Foo = a\n\tb.foo()\n\tlet c: Bar = a\n\tc.bar()\n}",
150150
"source": "Dynamic Types - Traits | manual.jule.dev",
151-
"length": 335,
151+
"length": 300,
152152
"id": 24
153153
},
154154
{

0 commit comments

Comments
 (0)