Monday, August 22, 2011

GsoC update: Week 12

With GSoC 2011 completion I’d like to let you know where I’m with the project progress since last week. In summary, the project is half-finished at this time, as I was overcome with complication of the tasks and limited time. But there’re a few achievements as well.

Project successes:
  • Project is building and generating grammars for both Groovy and Java
  • Groovy grammar is now defining all tokens explicitly as ANTLR3 is not generating LITERAL_name
  • I've removed all not working rules from Groovy file so it's at least building and allowing you to run compiler
  • Fixed almost all problems in Java code, most problems were connected to missing interface GroovyTokenTypes as this isn’t generated by ANTLR anymore so I've used instead GroovyLexer
  • I've created base class for parser so ANTLR grammar file is a now a bit cleaner
  • I've incorporated changes connected to ANTLR runtime changes so now we have GroovyTreeAdaptor and associated classes
  • I've tried to move code associated to custom node creation but it is still work in progress (I want to start with compilationUnit, annotations and package definition)
  • I've updated Java 2 Groovy converter, but I couldn’t find all necessary rules in Java grammar
  • ASTFrame is working, but as compilation unit is not available yet it's not displaying tree

Project challenges:
  • Remove reference to antlr3 jar from bootstraper (couldn't run the one downloaded from maven)
  • The grammar is still not working even with simple scripts and this is major challenge after that it should be easier to port the rest of rules
Cheers

Lidia


    GsoC update: Week 9-11

    Project update: 9-11 week

    The most recent project sucesses
    :

    * build.xml moved to antlr3
    * Scripts MAVEN and GRLDE  are now building ANTLR3
    * Dependency is downloading ANTLR jars
    * Main.java file from ANTLR package is rewritten to allow parsing and classes replacing with their equivalents in ANTLR3

    Problems encountered:

    * ANTLR3 plugin to MAVEN to ANTLR3 is not working
    * Limited time to complete the whole project

    What's left:
    I'm aware of the limited time and realise it will be impossible for me to translate all rules, but will keep focused on finishing first script working to allow parsing and building AST and display it with ASTFrame. 

    Cheers, Lidia