Giter Site home page Giter Site logo

lover's People

Contributors

evolbug avatar nilq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lover's Issues

Syntax Errors Out of the Box

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.