-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
To prepare this commit I've run `WIT_REQUIRE_SEMICOLONS=1 ./ci/run-tests.sh` locally which configures `wit-parser` to generate an error for missing semicolons in WIT files. This led me to add quite a few semicolons in quite a few places in what is going to be the first of a few batches of semicolons. CI checks for this cannot be added just yet because the wasi-nn spec is a submodule which needs to be updated with semicolons before this repository can require semicolons. Nevertheless that doesn't stop us from using semicolons in the meantime (yay gradual rollout of changes!) so I figure this would be good to get in sooner rather than later.
- Loading branch information
1 parent
9fe2765
commit 6943ed0
Showing
111 changed files
with
1,248 additions
and
1,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package foo:foo | ||
package foo:foo; | ||
|
||
interface chars { | ||
/// A function that accepts a character | ||
take-char: func(x: char) | ||
take-char: func(x: char); | ||
/// A function that returns a character | ||
return-char: func() -> char | ||
return-char: func() -> char; | ||
} | ||
|
||
world the-world { | ||
import chars | ||
export chars | ||
import chars; | ||
export chars; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
// hello 🐱 world | ||
package foo:foo | ||
package foo:foo; | ||
|
||
interface conventions { | ||
kebab-case: func() | ||
kebab-case: func(); | ||
|
||
record ludicrous-speed { | ||
how-fast-are-you-going: u32, | ||
i-am-going-extremely-slow: u64, | ||
} | ||
|
||
foo: func(x: ludicrous-speed) | ||
%function-with-dashes: func() | ||
%function-with-no-weird-characters: func() | ||
foo: func(x: ludicrous-speed); | ||
%function-with-dashes: func(); | ||
%function-with-no-weird-characters: func(); | ||
|
||
apple: func() | ||
apple-pear: func() | ||
apple-pear-grape: func() | ||
a0: func() | ||
apple: func(); | ||
apple-pear: func(); | ||
apple-pear-grape: func(); | ||
a0: func(); | ||
|
||
// Comment out identifiers that collide when mapped to snake_case, for now; see | ||
// https://github.com/WebAssembly/component-model/issues/118 | ||
//APPLE: func() | ||
//APPLE-pear-GRAPE: func() | ||
//apple-PEAR-grape: func() | ||
|
||
is-XML: func() | ||
is-XML: func(); | ||
|
||
%explicit: func() | ||
%explicit-kebab: func() | ||
%explicit: func(); | ||
%explicit-kebab: func(); | ||
|
||
// Identifiers with the same name as keywords are quoted. | ||
%bool: func() | ||
%bool: func(); | ||
} | ||
|
||
world the-world { | ||
import conventions | ||
export conventions | ||
import conventions; | ||
export conventions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package foo:foo | ||
package foo:foo; | ||
|
||
world foo { | ||
import foo: func() | ||
import foo: func(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package foo:foo | ||
package foo:foo; | ||
world empty {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package foo:foo | ||
package foo:foo; | ||
|
||
interface floats { | ||
float32-param: func(x: float32) | ||
float64-param: func(x: float64) | ||
float32-result: func() -> float32 | ||
float64-result: func() -> float64 | ||
float32-param: func(x: float32); | ||
float64-param: func(x: float64); | ||
float32-result: func() -> float32; | ||
float64-result: func() -> float64; | ||
} | ||
|
||
world the-world { | ||
import floats | ||
export floats | ||
import floats; | ||
export floats; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package foo:foo | ||
package foo:foo; | ||
world foo { | ||
export new: func() | ||
export new: func(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package foo:foo | ||
package foo:foo; | ||
|
||
interface multi-return { | ||
mra: func() | ||
mrb: func() -> () | ||
mrc: func() -> u32 | ||
mrd: func() -> (a: u32) | ||
mre: func() -> (a: u32, b: float32) | ||
mra: func(); | ||
mrb: func() -> (); | ||
mrc: func() -> u32; | ||
mrd: func() -> (a: u32); | ||
mre: func() -> (a: u32, b: float32); | ||
} | ||
|
||
world the-world { | ||
import multi-return | ||
export multi-return | ||
import multi-return; | ||
export multi-return; | ||
} |
Oops, something went wrong.