-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello, all I've done is wu create 3d and copy-pasted the sample code on the readme of this repo into src/init.wu, then git cloneed the repo into src and ran wu 3d and I get syntax errors (that make no sense) out of the box:
λ wu 3d
Compiling 3d\init.wu
wrong: expected `,` or newline, found `flush`
--> 3d/src/lover/filesystem.wu
│
14 │ flush: fun(self) -> (bool, str?)
│ ^^^^^
Compiling 3d\src\init.wu
wrong: expected `,` or newline, found `flush`
--> 3d\src/lover/filesystem.wu
│
14 │ flush: fun(self) -> (bool, str?)
│ ^^^^^
Compiling 3d\src\lover\audio.wu
Compiling 3d\src\lover\data.wu
Compiling 3d\src\lover\event.wu
Compiling 3d\src\lover\filesystem.wu
wrong: expected `,` or newline, found `flush`
--> 3d\src\lover\filesystem.wu
│
14 │ flush: fun(self) -> (bool, str?)
│ ^^^^^
Compiling 3d\src\lover\font.wu
Compiling 3d\src\lover\graphics.wu
wrong: expected `,` or newline, found `type`
--> 3d\src\lover/types.wu
│
5 │ type: fun(self) -> str
│ ^^^^
Compiling 3d\src\lover\image.wu
Compiling 3d\src\lover\init.wu
wrong: expected `,` or newline, found `flush`
--> 3d\src\lover/filesystem.wu
│
14 │ flush: fun(self) -> (bool, str?)
│ ^^^^^
Compiling 3d\src\lover\joystick.wu
wrong: expected `,` or newline, found `getAxis`
--> 3d\src\lover\joystick.wu
│
16 │ getAxis: fun(self, int) -> float
│ ^^^^^^^
Compiling 3d\src\lover\keyboard.wu
Compiling 3d\src\lover\math.wu
Compiling 3d\src\lover\mouse.wu
Compiling 3d\src\lover\physics.wu
wrong: expected `,` or newline, found `getFixtures`
--> 3d\src\lover\physics.wu
│
26 │ getFixtures: fun(self) -> ...Fixture
│ ^^^^^^^^^^^
Compiling 3d\src\lover\sound.wu
Compiling 3d\src\lover\system.wu
Compiling 3d\src\lover\thread.wu
wrong: expected `,` or newline, found `isRunning`
--> 3d\src\lover\thread.wu
│
9 │ isRunning: fun(self) -> bool
│ ^^^^^^^^^
Compiling 3d\src\lover\timer.wu
Compiling 3d\src\lover\touch.wu
Compiling 3d\src\lover\types.wu
wrong: expected `,` or newline, found `type`
--> 3d\src\lover\types.wu
│
5 │ type: fun(self) -> str
│ ^^^^
Compiling 3d\src\lover\video.wu
Compiling 3d\src\lover\window.wu
Finished things in 166ms
Obviously the source code already has newlines where it says it should have them. Adding newlines where it says to add them does not fix the error. Adding commas, however, does fix the error. I'm on 64-bit Windows 10 and have tried converting files to both LF line endings and CRLF, to no avail.
Does anyone know what's going on? Or is this likely a problem with the Wu language itself?
Metadata
Metadata
Assignees
Labels
No labels