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.
.
The kata is retired, so I'm retracting the suggestion
Fork which solves most of the issues below is ready, please review and approve, if no questions will be raised~
No tests of unmatched brackets like such: "]["
Solution like this which does not try to deal with non-bracket characters should not pass.
This is a duplicate of https://www.codewars.com/kata/valid-parentheses and many other similar katas.
Needs random tests.
In the EBNF you use parentheses (
()
), but elsewhere it's square brackets ([]
). You might want to correct that.Fixed. Thanks for reporting.
I encountered same issue
Hi VermillionAzure
Seem anything wrong with test case setup by default. I write function return false ( default one ) and get error while trying to test
bool accept_string(std::string str) { return false }
Thanks
TTin
.
This is my attempt at a recursive descent parser according to the EBNF grammar. I would be welcome to ideas on how to do this better.
This comment is hidden because it contains spoiler information about the solution