ASTVisitor

Aleix Pol aleixpol at kde.org
Fri Oct 15 18:35:29 UTC 2010


On Fri, Oct 15, 2010 at 6:11 PM, Sven Brauch <svenbrauch at googlemail.com>wrote:

> Hey!
>
> I'm using kdevelop-pg-qt to generate a parser for python. In astvisitor.cpp
> (
> http://github.com/scummos/kdevelop-python/blob/master/parser/astvisitor.cpp),
> although the type of the AST is definitely BooleanNotOperation, it steps
> into visitBooleanAndOperation for code like "if not foo: pass" and then
> segfaults. Can anyone tell me why it steps into visitBooleanAndOperation and
> not into visitBooleanNotOperation? I really can't figure that out...
>
> Thanks,
> Sven
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
>
Are you sure you can't use the parser provided by libpython?

That would make sense...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101015/b3167698/attachment.html>


More information about the KDevelop-devel mailing list