Microsoft Roslyn Project whitepaper

Microsoft has recently detailed their "Compiler as a Service" initiative in a whitepaper. The whitepaper calls the project Roslyn.

Related, IBM sponsors the Eclipse IMP project for its X10 language (and the X10DT). IMP is also used for Eelco Visser's Spoofax IDE and WebDSL IDE.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Representing Syntax trivia in the parse tree?

I wonder how did they fit Syntax trivia into the tree. Suppose we have
int i = j+(1+2)

So, is the newline appended to the node (1+2) or the node j+(1+2) or the whole declaration (which includes assignment but excludes semicolon)?