Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pattern matching and destructuring??..super noob question #6
Hi Eliah, maybe this is a stupid question but I'm just learning about parsers and lexers now, something cool about the scala parser is than I can build a structure of scala objects which I can traverse in a simple way using pattern matching...
for instance the terms in this blog http://www.dontbreakthebuild.com/2013/07/30/basic-parsing-in-scala-using-parsing-combinators/
I was thinking than would be a solution iterate 2 times, the first one traverse the nodes and build a tree of scala objects and then work with this...but I'm not sure if it's a good approach or there is a better solution