Closed mwatts15 closed 11 years ago
I'm going to have to add a new syntax for fields in structs in order to get Structs to work with the Visitor pattern. I was thinking something like:
(mystruct .field)
or
(mystruct 'field)
would be good, what do you all think? The biggest problem with this is that I'm not sure if it would work with lambdas argument substitution.
Edit: But then again, I don't know if allowing a field to be an argument to a lambda is that big of a deal...
Sure, if it seems necessary.
On Fri, Nov 2, 2012 at 6:26 PM, tvarney notifications@github.com wrote:
I'm going to have to add a new syntax for fields in structs in order to get Structs to work with the Visitor pattern. I was thinking something like:
(mystruct .field)
would be good, what do you all think?
— Reply to this email directly or view it on GitHubhttps://github.com/mwatts15/CS345-Project/issues/3#issuecomment-10033420.
Regards, Mark Watts College of Natural Sciences University of Texas at Austin
This is tentatively done in the tvarney-ast branch.
We need to build the AST such that it can be visited by a Visitor class.