[cfe-dev] Should we build semantically invalid nodes?
Sebastian Redl
sebastian.redl at getdesigned.at
Sat Oct 25 08:06:08 PDT 2008
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.
Sebastian
More information about the cfe-dev
mailing list