Hi,
Jim suggested I send this issue to the list. If any follow-up is required
please contact me directly. Thanks.

regards,

Glenn Snyder
[email protected]

---------- Forwarded message ----------
From: Glenn Snyder <[email protected]>
Date: Tue, Jul 28, 2009 at 1:51 PM
Subject: Bug in tree.py, how to submit defects on ANTLR
To: Jim Idle <[email protected]>, [email protected]


Jim,
I believe I have uncovered a defect in ANTLR v3.1.2 Python API in the
getAncestors() method call. I receive the following error when attempting to
use the method,

File
"/Library/Python/2.5/site-packages/antlr_python_runtime-3.1.2-py2.5.egg/antlr3/tree.py",
line 909, in getAncestors
    if selfgetParent() is None:
NameError: global name 'selfgetParent' is not defined

I opened tree.py and went to line 909 and, obviously, there should be a "."
(dot) in between "self" and "getParent()". After inserting the "." the code
worked as expected.

I tried to search the ANTLR defect database (found at
http://www.antlr.org/jira/secure/Dashboard.jspa) using a keyword of
"getAncestors" and didn't locate any issues. Is there a way I can submit a
defect (and the fix?)? It wasn't apparent that I could submit new issues.
Let me know how I can help.

-- 
regards,

Glenn Snyder
508-397-0420
http://www.linkedin.com/in/glennasnyder




-- 
regards,

Glenn Snyder
508-397-0420
http://www.linkedin.com/in/glennasnyder

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to