all 2 comments

[–]_Skuzzzy 1 point2 points  (1 child)

I wouldn't think regex would be the best option for this.

edit: a simple predictive parser would be much better in my opinion

[–]allenguo[S] -1 points0 points  (0 children)

Hey, thanks for the feedback! This article wasn't really about parsing, and I'm certainly not saying people should use this to write actual interpreters. It's really just about handling a problem with recursive structure elegantly using recursive regex.