[antlr-interest] ANTLR v3.1.2 and Python runtime under python 2.5.1

Vladimir Pouzanov farcaller at gmail.com
Tue Jun 9 13:50:57 PDT 2009


Hi all,

I'm trying to write a simple grammar for Python runtime. ANTLR Tool  
seems to generate output just fine but then antlr_python_runtime-3.1.2- 
py2.5.egg fails at

$ python output/objjParser.py < wikibits.js
Traceback (most recent call last):
  File "output/objjParser.py", line 16144, in <module>
    main(sys.argv)
  File "output/objjParser.py", line 16140, in main
    main.execute(argv)
  File "/Library/Python/2.5/site-packages/antlr_python_runtime-3.1.2- 
py2.5.egg/antlr3/main.py", line 151, in execute
  File "/Library/Python/2.5/site-packages/antlr_python_runtime-3.1.2- 
py2.5.egg/antlr3/main.py", line 218, in parseStream
TypeError: getattr(): attribute name must be string

I'm running Python 2.5.1.

-- 
Sincerely,
Vladimir "Farcaller" Pouzanov







More information about the antlr-interest mailing list