[antlr-interest] Re: thoughts on source-to-source workshop at
oopsla 2004
Anakreon
anakreonmejdi at yahoo.gr
Tue Oct 26 06:42:42 PDT 2004
> like a nightmare. So after several months work, I gave up on
> AST-to-AST translation and came up with my own system
> (described briefly here: http://jazillian.com/design.html)
Really interesting approach. I have two problems similar with those
you point to the web page. The goto (for vb) which PHP does not support
and the comments reassignment. I used a system similar with the code
snippets you mention. I use XML because I need to describe classes.
I wonder though, is the Token stream approach powerful enough?
For example if you have the code snippet:
someMethod(x) -> translation
and there are two overloaded version of someMethod say:
someMethod(char c) and someMethod(uint c)
how can you provide a different translation for those cases?
My approach uses AST to AST translation.
Why did you refuse this approach? What was the main drawback
of this approach?
Anakreon.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list