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.
As a workaround, you can run the final tests instead. For some reason, this error only appears in sample tests
As far as I can tell, programs with an infinite number of variables can exist:
var
) is unlimited (based on the grammar).var
instruction is unlimited (based on the grammar).VarName
length is unlimited, based on the grammar).I'd say, you should support an unlimited number because of this.
Theoretically, it should even be possible to compile and run such program, because:
Description:
and then two blocks of examples returning ASTs.
Return an AST.
There's no whitespace in register or label names.
The tests don't seem to call msg twice - my code inserts newlines when it sees repeat calls.
That violates the rule, hence not allowed.
This is generally known as a recursive descent parser and I'd say it's a good way to do things
Thanks, it's accually the only solution I can figure out when before checked the solusions. LOL
You can make one.