We contributed back our changes to NRefactory to SharpDevelop project but they don't have interest to include them in original project.
This page created because of requests to receive these changes. For detailed change list check NRefactoryChanges
Steps to include Java parser and other required stuff in NRefactory :
1. Grab NRefactory sources:
- Revision 2622 of NRefactory from here
- EasyCodeDOM.cs from here and put it in NRefactoryASTGenerator folder
Note: Recent revisions of NRefactory (SharpDevelop) migrated to VS 2008 and C# 3.0.
2. Include Janett changes to support Java (All files are attached to this page and also downloadable in one-package from here)
- Apply NRefactory-Java.patch
- Apply ProjectFiles.patch
- Unpack NRefactory-Java.zip
3. Now you can generate Java lexer and parser or use generated ones
- Apply NRefactory-Java-Generated.patch
- Unpack NRefactory-Java-Generated.zip
if you want to generate them (because of your changes in source files)
- Open command prompt in Project\Src\Lexer\Java folder and run "..\BuildKeywords.pl" (you should install a Perl interpreter to do this step)
- Run Project\Src\Parser\gen.bat
- Set NRefactoryASTGenerator as startup project and Run it
4. Ensure JavaOutputTest and JavaParserTests are passed
Attachments
- NRefactory-Java.patch (26.7 kB) - added by edrishn on 07/20/07 17:34:12.
- NRefactory-Java.zip (25.2 kB) - added by edrishn on 07/20/07 17:34:35.
- NRefactory-Java-Generated.patch (78.1 kB) - added by edrishn on 07/20/07 17:34:56.
- NRefactory-Java-Generated.zip (14.9 kB) - added by edrishn on 07/20/07 17:35:23.
- NRefactory-Java-ProjectFiles.patch (7.6 kB) - added by edrishn on 07/20/07 18:42:46.
