wu-lang / lover Goto Github PK
View Code? Open in Web Editor NEW๐ A Wu wrapper for Love2D
Home Page: https://github.com/wu-lang/wu
License: MIT License
๐ A Wu wrapper for Love2D
Home Page: https://github.com/wu-lang/wu
License: MIT License
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 clone
ed 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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.