Hi List,

      Currently the new parser can parse almost all groovy source
codes(including the scripts embedded) of groovy project(2.5.0 master branch,
*4621 IN TOTAL, 4619 PASSES, 2 FAILED*). In other words, the AST generated
by the new and old parsers are almost same(except corrected location
information of nodes). You can find more details in the groovy-parser
repository(https://github.com/danielsun1106/groovy-parser).

     The 2 FAILED test cases is:
1) src/test/groovy/EscapedUnicodeTest.groovy(TODO find a better way to
translate code written in unicode escapes);
2)
subprojects/groovy-groovysh/src/main/groovy/org/codehaus/groovy/tools/shell/commands/DocCommand.groovy(TODO
confirm: https://github.com/danielsun1106/groovy-parser/issues/5);
      
      The following work will be done in the near future:
1) set the new parser as the default parser to build groovy itself and run
all test cases;
2) provide friendly error message;
3) add more features to make Groovy more compatible with Java, e.g.
do-while, lambda expression, etc.

     At last, I want to thank *Jochen Theodorou* and *Paul King*, who
provide me many suggestion and help while developping the new parser.

Cheers,
Daniel.Sun



--
View this message in context: 
http://groovy.329449.n5.nabble.com/PROGRESS-REPORT-20161004-groovy-parser-tp5735725.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Reply via email to