While this is not helping you directly, you might want to learn about Lexing and Parsing. I found this on http://www.perl.com/pub/2012/10/an-overview-of-lexing-and-parsing.html which also might be worth reading.
In reply to Re: Need a start point for resolving {[()]}
by Skeeve
in thread Need a start point for resolving {[()]}
by exilepanda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |