Git Product home page Git Product logo

Comments (3)

lucaswerkmeister avatar lucaswerkmeister commented on April 25, 2024

If this was only about Z56/negate, then I could probably make the parser recognize the function call in the implementation relatively easily. It doesn’t make very much sense to call an eneyj function with zero arguments, so if the parser doesn’t see any ZabcKi or Ki arguments, it can probably just guess that any other ZxyzKi key in the JSON (other than basic keys like Z1Ki or Z7Ki) is actually an argument. That works for the Z56/negate implementation, where all the other keys are indeed arguments (Z31K1...Z31K3); but that won’t be enough to support this strange “call different functions with different arguments” case, hence the question whether that needs to be supported at all.

from abstracttext.

vrandezo avatar vrandezo commented on April 25, 2024

No, I think you're asking the right question. To the best of my memory, this is not an intentional pattern. I have somewhere in my Todo list "go and clean up the if functions", because ... there was a bit of experimenting with different implementations of the if function. In short, no, this is just a mistake. A validator should have caught that.

Thanks for reporting! I'll keep this open until it is fixed.

from abstracttext.

lucaswerkmeister avatar lucaswerkmeister commented on April 25, 2024

Alright, thanks! Then I’ll just make the GraalEneyj parser look a bit harder for arguments for now :)

from abstracttext.

Related Issues (15)

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.