You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct, the solution does not utilize any syntactic analysis. The problem was solved in a way consistent with a chapter one overview lesson for the book. A proper linter would need to be able to parse the language at hand with proper lexical analysis. I would certainly welcome an "extras" pull request which does this. Also, a compromise could be written that simply checks for odd numbered counters when a closing symbol is encountered which would indicate improper nesting.
The case "({)}" cause syntax error, but your program cannot handle this correctly.
The text was updated successfully, but these errors were encountered: