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 said it looks like Kotlin, it's NOT Kotlin. Or this Kata will be much more complicated.
Thank you. Corrected.
In this Kata, function is NOT expression.
According to the
tokenize
function of JS,it will generate something like
{_
, but it should be{
and_
.The correct regex should be
the key is
[A-Za-z_]
.According to the BNF (which is NOT a valid Kotlin BNF),
the program
{}{}{}
is valid. Just picklambda
ofexpression
andexpression lambda
offunction
, we can construct a infinitelambda
list.Modify the BNF, or remove this test.
Well then I guess I will just have to add more RegEx tests to validate it :P
Edit: Ok, all fixed on my end. And I cleaned it up a bit. Thanks! :D
OK, I'll tell the author of the js version
Cheers!