Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I added random tests and improved description.
Added random tests.
Added random tests.
When you do not have an error, you just recive
null
, and everything is OK, you can proceed.In other case the only thing you receive is an error.
Similar to try-catch and try-to-catch.
I think I already fixed all.
I'll be greateful for help :). What should random generator actually generate?
Any count of instructions: "add", "mov", "inc" with any count of operands.
Could you please clarrify this? When I solved Simplexer I had a lot fun and didn't have problems with absense of random test generator.
Could you provide such a generator? Are you sure every kata should have such a generator?
updated
It is much simpler then others in terms of the syntax:
only 3 instructions
,no jumps
. There is not many katas related to compilers and interpreters.compilers shouldn't provide information about error position?
This people doesn't think that it is
worthless
idea:Who told you that it is
worthless
:)?How do you want me to specify error instance?
It was
This is how it's looking in a REPL, how do you think it should be mentioned?
Could you please tell me what do you mean by random tests?
Thank you, just added missing tests.
Error handling is the most important part in real compiler design :).
No metter what programming languege are you use, information about line number of an error is always useful and helps alot.
Existing katas has no error handling, and they has harder semantics, so I think such interpreter has sense to be.
Anyways thank you for your feedback, it is very useful.
Thank you, just updated description to point your issues.