Tuesday, May 31, 2011

GSoC update: Week 1

About Project: Groovy's grammar is based on Antlr 2.7, but I will move it to a newer version of Antlr. However, the migration is not seemless and transparent, so it would be a great opportunity to do a better clean room re-implementation of the Groovy grammar. A new grammar would be cleaner, easier to work with, especially as various IDE tools help author Antlr 3 grammars better than the previous versions.

Project mentor: Jochen Theodorou

JIRA issue for this task:
http://jira.codehaus.org/browse/GROOVY-3099

Project update:

1) What I achieved last week?

I am proud of a good start!  I've discussed with Jochen my key activities on which I should focus on the most during the whole project. As I was already working with Groovy codebase before my environment was fully setup from day one.

I'm cracking on rewriting the Groovy grammar to ANTRL 3 in plan with the work schedule. Initially, I was able to rewrite almost whole lexer. Changes are committed to dedicated svn branch.

Also, I was inspired by the lecture of The Definitive ANTLR Reference by Terence Parr.

2) What I am working on for the next week?

Finishing lexer and starting with parser rules rewriting. I will also start running unit test for created rules to guarantee compatibility with previous version.

3) Are there any blockers (infrastructure, mentors, holidays, assistance)?

Hallelujah! No blockers so far.