Re: [Mono-dev] GSoC - AST Verifier for C# compiler

2012-03-29 Thread Mike Krüger
Hi I would like to have whitespaces (and EOL as other special node) in the ast as well as non compileable stuff as maybe TextNode, but that kills performance even more. Doing pre processor directives and comments with the specials bag and inserting them afterwards slows done the parse

Re: [Mono-dev] GSoC - AST Verifier for C# compiler

2012-03-28 Thread Petr Onderka
Thanks. That looks interesting. Petr Onderka On Tue, Mar 27, 2012 at 23:56, Mike Krüger mkrue...@xamarin.com wrote: Hi Try to look at NRefactory git://github.com/icsharpcode/NRefactory.git The structural visitor was built for that. NRefactory does: Text - Mcs AST - NRefactory AST That AST

Re: [Mono-dev] GSoC - AST Verifier for C# compiler

2012-03-28 Thread Petr Onderka
Hi, some more questions: I see that NRefactory doesn't deal with whitespace at all and processes comments and preprocessor directives using SpecialsBag that's not present in Mono.CSharp. Can I ignore whitespace too? And does that mean I have to add (or copy from NRefactory) support for comments

[Mono-dev] GSoC - AST Verifier for C# compiler

2012-03-27 Thread Petr Onderka
Hi, as a backup if my first proposed project doesn't get selected, I'm looking into implementing the project “AST Verifier for C# compiler”. The project statement says to implement an AST visitor and I have looked around and found the class StructuralVisitor. It seems to be exactly what I need,

Re: [Mono-dev] GSoC - AST Verifier for C# compiler

2012-03-27 Thread Mike Krüger
Hi Try to look at NRefactory git://github.com/icsharpcode/NRefactory.git The structural visitor was built for that. NRefactory does: Text - Mcs AST - NRefactory AST That AST can generate C# code as text - using the output visitor, or just node.GetText(). Therefore it's half way done, however