That indeed looks like a good idea.<br>I read the parser documentation and generated an XML file out of the AST the parser provides; for this script <a href="http://pastie.org/1224459">http://pastie.org/1224459</a> , it looks like this: <a href="http://pastie.org/1224456">http://pastie.org/1224456</a><br>

I'd now read that into the C++ AST (this will require quite some changes in class structures, as the AST this parser provides is much more clear and detailed; for example, instead of "Identifier", it explicitly gives things like "FunctionDef", "Attribute" and "Name", and even tells wether the attribute is being written or read. Nice!). Do you think that's a bearable plan (PovAddict already disliked the idea of using XML for this...)?<br>

<br>Best regards,<br>Sven<br><br><div class="gmail_quote">2010/10/15 Sven Brauch <span dir="ltr"><<a href="mailto:svenbrauch@googlemail.com">svenbrauch@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Thanks for your answers.<br>Hmm, actually that would definitely make sense, less code to maintain, and it'd probably be faster, too... I'll have a look at that before I try to fix the other problem (there's several others, too, and some of them would probably take much debugging work)...<br>


<br>Best regards,<br>Sven<br><br><div class="gmail_quote">2010/10/15 Aleix Pol <span dir="ltr"><<a href="mailto:aleixpol@kde.org" target="_blank">aleixpol@kde.org</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div><div class="gmail_quote"><div><div></div><div>On Fri, Oct 15, 2010 at 6:11 PM, Sven Brauch <span dir="ltr"><<a href="mailto:svenbrauch@googlemail.com" target="_blank">svenbrauch@googlemail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
Hey!<br><br>I'm using kdevelop-pg-qt to generate a parser for python. In astvisitor.cpp (<a href="http://github.com/scummos/kdevelop-python/blob/master/parser/astvisitor.cpp" target="_blank">http://github.com/scummos/kdevelop-python/blob/master/parser/astvisitor.cpp</a>), 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...<br>





<br>Thanks,<br><font color="#888888">Sven<br>
</font><br></div></div>--<div><br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org" target="_blank">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></div></blockquote></div><br></div><div>Are you sure you can't use the parser provided by libpython?<div><br></div><div>That would make sense...<br></div></div>
<br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org" target="_blank">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div></div></div><br>
</blockquote></div><br>