Feedback on antlr3 branch

13 views
Skip to first unread message

Henning

unread,
Oct 15, 2009, 9:44:18 PM10/15/09
to java2python-discuss
Hello,
just in case you don't get notifications for new tickets:
http://code.google.com/p/java2python/issues/detail?id=33
I think if a name is unknown, it should be looked-up in a stacked
scope-dictionary. If the name is an attribute or a method, "self"
should be prepended. Another problem I see is if this name is defined
in a super-class (which might additionally be in another file). So
transpiling recursively would be needed (sounds like a lot of work
unfortunately).
Are there any plans in this direction? Or any hints where I should
look to make some quick hacks? ;)

Regards
Henning

Troy Melhase

unread,
Jan 9, 2010, 12:58:42 AM1/9/10
to java2pyth...@googlegroups.com
Hello Henning,

I've abandoned that branch (antlr3) and the 0.3 branch, too. The name
lookups you're talking about should be handled correctly in almost all
cases.

The new, shiny 0.4 branch should make this much easier. I'm no longer
using antlr tree grammars but instead using the dynamic scope features
in antlr grammars. This means that (a) there's no manual stack
manipulation and (b) finding the parent of a statement or expression
is natural and easy. Both wins.

The 0.4 branch won't be done for some weeks or months, but I'm certain
it's the correct direction.

troy

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "java2python-discuss" group.
> To post to this group, send email to java2pyth...@googlegroups.com
> To unsubscribe from this group, send email to java2python-dis...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/java2python-discuss?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>

Reply all
Reply to author
Forward
0 new messages