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
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...
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
thanks
The text was updated successfully, but these errors were encountered:
@cocodrino Hi! That's nice you are using Papa Carlo for learning purposes. I believe it was a good choice to play with various things related to this topic. But what was your question about, actually?
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 can match over Integer(a), Multiplication(a,b)...etc...
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
thanks
The text was updated successfully, but these errors were encountered: