Beta

Sparkle Interpreter

Description
Loading description...
Parsing
Interpreters
Strings
Mathematics
Algorithms
  • Please sign in or sign up to leave a comment.
  • Blind4Basics Avatar

    Since the author is inactive and that the kata description is lacking most of the important stuff about the lexer and other stuff, and the test suite is lacking random tests, I'm tempted to take this kata down (like actually "destroy" it from the edit panel as far as possible) and publish a fully revamped version, without the lexer (I don't see the point of this one, actually).

    Opinions about that?

    • JohanWiltink Avatar

      I don't think it's fair to destroy this one.

      Make a new one. If it has random tests and no lexer, it won't be a duplicate.

    • Blind4Basics Avatar

      ok, noted (I had other feedbacks pushing in the same direction on gitter. I'll just have to find the motivation... x) )

      Question marked resolved by Blind4Basics 6 years ago
    • JohanWiltink Avatar

      I'm toying with the idea of making this a Haskell and / or JavaScript project.

      If I do I may also create a new kata instead, because I don't see the point of pre-including a lexer either.

      If we stick to the language spec, we should arrive at the same kata, so either could be a translation instead of a new one.

      You can't have a kumite in multiple languages, can you?

    • Blind4Basics Avatar

      kumite: I don't know.

      But if I do this new version, I'll (at least, I "plan to"... x/ ) add some other specs in additions (powers, maybe strings & mutliline strings, maybe right/left associativity of operators, push further the scopes managments, things like that) to make it more different (actually, to forbid the use of solutions here for the ogther one).

    • JohanWiltink Avatar

      Just came across this again.

      I guess my Lambda Calculus compiler pretty much is what that project would have been. Mainly because LC can encode just about anything ..

  • Voile Avatar

    I just took a look at the existing solutions again, and turns out 4 out of 9 solves are using reflection/class patching to cheat the kata (and I just hardcoded the results because there are no random tests ;-)).

    Something should be done to stop them ;-)

  • Voile Avatar

    Needs random tests.

  • Voile Avatar

    The tests are catching all Throwables and printing their stack traces, which includes failed test assertions.

    This means we'll be drowned with output logs if we have failed tests.

  • Axure Avatar

    8 completions and no ratings, which is amazing.

  • gh314 Avatar

    Could the Tokenizer's source code be made available? I'm trying to solve this in Python first and since it's not available i'm hand-writing my own.