Giter Site home page Giter Site logo

Unable to parse >= about wgsl_reflect HOT 8 CLOSED

louderspace avatar louderspace commented on September 1, 2024
Unable to parse >=

from wgsl_reflect.

Comments (8)

louderspace avatar louderspace commented on September 1, 2024 1

I also verified this issue has been resolved, thank you!

from wgsl_reflect.

brendan-duncan avatar brendan-duncan commented on September 1, 2024

I'll get it fixed up shortly.

from wgsl_reflect.

brendan-duncan avatar brendan-duncan commented on September 1, 2024

What problem are you seeing?

from wgsl_reflect.

louderspace avatar louderspace commented on September 1, 2024

This is strange. On my work laptop, I simply pasted the code between the comments "//######" into your test page:

https://brendan-duncan.github.io/wgsl_reflect/example.html

And it produced errors. On my home MBP, it's not happening. Let me try again on my other laptop and I'll paste the error.

from wgsl_reflect.

louderspace avatar louderspace commented on September 1, 2024

highlightOverRangeColors.txt
Try pasting the contents of this file into here:

https://brendan-duncan.github.io/wgsl_reflect/example.html

You'll see this error:

"Expected ';' after statement. Line 3. Found: '='."

from wgsl_reflect.

brendan-duncan avatar brendan-duncan commented on September 1, 2024

Thanks, I can repo it now. Very strange, but I'll get it sorted out.

from wgsl_reflect.

brendan-duncan avatar brendan-duncan commented on September 1, 2024

Figured out the issue, just have to find a solution. I have code in the scanner that tries to disambiguate >= between being a greater-equal or closing of a template followed by equals, as in a >= b from vec2<bool> = b.

Your code found the hole in my logic. var cEdgeBool : vec3<bool> = c3 >= vec3<f32>(1.0); makes the scanner think > in >= is a template close and it's getting split into > followed by =.

Back to the drawing board. Just have to make that logic a bit more robust.

from wgsl_reflect.

brendan-duncan avatar brendan-duncan commented on September 1, 2024

The function is parsing now.

from wgsl_reflect.

Related Issues (20)

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.