Hey I am happy with my DSL, I can yacc.parse() it it and create an AST in memory.
I am now trying to add a feature where, for a given AST, I can generate the corresponding portion of DSL. The AST I've created in memory is a simple tuple for every expression I am visiting, and I was wondering what is the best way to do the revert operation. The problem I am facing is that I don't want to maintain on one side a grammar to parse my DSL, and on the other side a function to parse the AST and do the revert operation. I was wondering how this is usually solved, or if PLY provides some helpers for this Thanks Tarek -- Tarek Ziadé | http://ziade.org -- You received this message because you are subscribed to the Google Groups "ply-hack" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/ply-hack?hl=en.
