csjark module

bezenchu at gmail.com bezenchu at gmail.com
Wed Sep 21 09:51:37 EDT 2016


On Wednesday, September 21, 2016 at 4:43:47 PM UTC+3, beze... at gmail.com wrote:
> On Wednesday, September 21, 2016 at 3:17:11 PM UTC+3, Peter Otten wrote:
> > bezenchu at gmail.com wrote:
> > 
> > > On Wednesday, September 21, 2016 at 1:14:14 PM UTC+3, Peter Otten wrote:
> > >> bezenchu at gmail.com wrote:
> > >> 
> > >> > After setting up csjark (http://csjark.readthedocs.io/), I'm trying to
> > >> > test on of my C header files which has following statements:
> > >> > 
> > >> > typedef struct {
> > >> >    unsigned long X;
> > >> >    __int64 Y;
> > >> > } abc;
> > >> > 
> > >> > 
> > >> > If I'm changing __int64 to unsigned long I'm not getting this error
> > >> > For the __int64 i'm getting the mention error. Am I missing something?
> > >> > 
> > >> > 
> > >> > In addition, I'm getting following error:
> > >> > Attribute error("'tuple object has no attibute 'children'",)
> > >> > 
> > >> > I'd be glad to have some assistance.
> > >> 
> > >> It looks like development of csjark has stopped in 2011. Try installing a
> > >> pycparser version from that time frame -- 2.05 should be a good candidate
> > >> according to <https://github.com/eliben/pycparser/blob/master/CHANGES> so
> > >> if you are using pip after
> > >> 
> > >> $ pip install pycparser==2.05
> > >> 
> > >> csjark might work.
> > > 
> > > I've installed all the required SW, but still getting the same error
> > 
> > When you invoke the interactive interpreter what does
> > 
> > >>> import pycparser
> > >>> pycparser.__version__
> > '2.05'
> > 
> > produce on your system?
> 
> I have version 2.07 (which is the one used for the development)


some progress I've found for the 2nd problem is that this error is thrown in cparser.py (from the csjark files) in the visit_Enum function of the StructVisitor class.

In the .h file I have following definition which tried to be parsed
typedef enum{
   a=0;
   b=1;
} c;



More information about the Python-list mailing list