[cfe-dev] Should we build semantically invalid nodes?
snaroff at apple.com
Sat Oct 25 10:35:12 PDT 2008
On Oct 25, 2008, at 11:06 AM, Sebastian Redl wrote:
> Argiris Kirtzidis wrote:
>> Hey Steve, breaking up Sema is a ridiculous awesome idea!
>> Here's a thought I'd like to throw around..
>> Could there be something like "composable Actions" ? The ASTBuilder
>> would build the AST while Sema would do semantic checks and reject
>> invalid nodes.
>> This will cleanly separate the semantic checks from the AST
>> building and, as you said, will make the code more maintainable.
> Unless the complexity of creating and maintaining that separation
> exceeds that of having the merged code.
> I'm all for the separation, but we need a really good plan before we
> can actually do it.
I totally agree. I think this would be a fairly disruptive change. We
would need a fairly compelling reason to tackle it.
At this point, it's just "food for thought". It is true that Sema has
grown considerably and it would be nice to benefit from some of its
functionality with having to take it all.
More information about the cfe-dev