<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Kann man C++ mit einem LL(k) oder LR(k) Parser parsen?]]></title><description><![CDATA[<p>Hi,</p>
<p>Frage steht eigentlich schon im Topic: ist es möglich C++ mit einem LL(k) oder LR(k) Parser zu parsen? Bei Google bekomme ich nichts sinnvolles raus, dass es nicht mit k=1 geht weiß ich auch so schon...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/249776/kann-man-c-mit-einem-ll-k-oder-lr-k-parser-parsen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 08:28:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/249776.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Sep 2009 23:07:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Fri, 11 Sep 2009 23:07:05 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Frage steht eigentlich schon im Topic: ist es möglich C++ mit einem LL(k) oder LR(k) Parser zu parsen? Bei Google bekomme ich nichts sinnvolles raus, dass es nicht mit k=1 geht weiß ich auch so schon...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776800</guid><dc:creator><![CDATA[C++-Parser]]></dc:creator><pubDate>Fri, 11 Sep 2009 23:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 07:38:52 GMT]]></title><description><![CDATA[<p><a href="http://cppcc.sourceforge.net/" rel="nofollow">Ja</a></p>
<p>Google mal: <a href="http://www.google.de/search?q=c%2B%2B+parser+(k)&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=com.ubuntu:de:unofficial&amp;client=firefox-a" rel="nofollow">c++ parser (k)</a></p>
<p>Dutzende von Hits</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776849</guid><dc:creator><![CDATA[DeepCopy]]></dc:creator><pubDate>Sat, 12 Sep 2009 07:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 09:37:13 GMT]]></title><description><![CDATA[<p>DeepCopy schrieb:</p>
<blockquote>
<p><a href="http://cppcc.sourceforge.net/" rel="nofollow">Ja</a></p>
</blockquote>
<p>Das ist doch ein LL(k) Parser-Framework für C++ wie lex und yacc und kein LL(k) Parser der C++ parst.</p>
<blockquote>
<p>Google mal: <a href="http://www.google.de/search?q=c%2B%2B+parser+(k)&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=com.ubuntu:de:unofficial&amp;client=firefox-a" rel="nofollow">c++ parser (k)</a></p>
<p>Dutzende von Hits</p>
</blockquote>
<p>Bei dem Link ist mein Thread inzwischen auf Platz 1, das sieht ja nicht vielversprechend aus. Konnte aber immerhin das hier finden: <a href="http://www.jguru.com/faq/view.jsp?EID=531848" rel="nofollow">http://www.jguru.com/faq/view.jsp?EID=531848</a><br />
Leider existiert der Link zu dem genannten Paper nicht mehr und per Google finde ich es auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776881</guid><dc:creator><![CDATA[C++-Parser]]></dc:creator><pubDate>Sat, 12 Sep 2009 09:37:13 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 09:49:29 GMT]]></title><description><![CDATA[<p>Zwei Möglichkeiten:</p>
<p>Die Harte: Du siehst dir den Quelltext vom gcc-Parser an.<br />
Die Sanfte: Du fragst den Entwickler des C++ Parser-Frameworks in meinem ersten Post einfach mal.</p>
<p>Mehr fällt mir jetzt auch nicht ein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776891</guid><dc:creator><![CDATA[DeepCopy]]></dc:creator><pubDate>Sat, 12 Sep 2009 09:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 10:02:40 GMT]]></title><description><![CDATA[<p>Ich hab's nie ausprobiert und kenne mich mit Compilerbau auch nicht richtig aus. Aber vielleicht sind diese Links hilfreich: Ich hatte da mal etwas von einem angeblich sehr tollen und modernen C++ Code Parser gehört: <a href="http://www.scottmcpeak.com/elkhound/" rel="nofollow">Elsa</a> (passender <a href="http://video.google.com/videoplay?docid=-8037498917324385899" rel="nofollow">Google Tech Talk</a> dazu). Dann scheint <a href="http://llvm.org/" rel="nofollow">LLVM</a> noch recht modular aufgebaut zu sein, wobei die Unterstützung für C++ aber noch nicht 100% fertig ist, soweit ich weiß.</p>
<p>Gruß,<br />
SP</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776900</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776900</guid><dc:creator><![CDATA[Sebastian Pizer]]></dc:creator><pubDate>Sat, 12 Sep 2009 10:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 10:07:51 GMT]]></title><description><![CDATA[<p>Laut <a href="http://eli-project.sourceforge.net/elionline/faq_5.html#SEC19" rel="nofollow">http://eli-project.sourceforge.net/elionline/faq_5.html#SEC19</a> geht es wohl nicht:</p>
<blockquote>
<p>Compounding the problem is the fact that C++ has a number of essential ambiguities that make it very difficult to specify formally. For example, if something looks like both a declaration and an expression then it's a declaration. How do you express that formally?</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1776901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776901</guid><dc:creator><![CDATA[life]]></dc:creator><pubDate>Sat, 12 Sep 2009 10:07:51 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 10:22:05 GMT]]></title><description><![CDATA[<p>C++-Parser schrieb:</p>
<blockquote>
<p>Frage steht eigentlich schon im Topic: ist es möglich C++ mit einem LL(k) oder LR(k) Parser zu parsen? Bei Google bekomme ich nichts sinnvolles raus, dass es nicht mit k=1 geht weiß ich auch so schon...</p>
</blockquote>
<p>Meines Wissens sind LR(k)-Parser für endliches k&gt;=1 gleich mächtig. Ansonsten verstehe ich nicht, wieso googeln nach C++ LR(k) nicht helfen soll, das hier:<br />
<a href="http://stackoverflow.com/questions/243383/why-c-cannot-be-parsed-with-a-lr1-parser" rel="nofollow">http://stackoverflow.com/questions/243383/why-c-cannot-be-parsed-with-a-lr1-parser</a><br />
sieht doch sehr gut aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776903</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Sat, 12 Sep 2009 10:22:05 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 10:35:20 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>Meines Wissens sind LR(k)-Parser für endliches k&gt;=1 gleich mächtig.</p>
</blockquote>
<p>Laut <a href="http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html" rel="nofollow">http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html</a> nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776907</guid><dc:creator><![CDATA[life]]></dc:creator><pubDate>Sat, 12 Sep 2009 10:35:20 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 10:40:15 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>C++-Parser schrieb:</p>
<blockquote>
<p>Frage steht eigentlich schon im Topic: ist es möglich C++ mit einem LL(k) oder LR(k) Parser zu parsen? Bei Google bekomme ich nichts sinnvolles raus, dass es nicht mit k=1 geht weiß ich auch so schon...</p>
</blockquote>
<p>Meines Wissens sind LR(k)-Parser für endliches k&gt;=1 gleich mächtig. Ansonsten verstehe ich nicht, wieso googeln nach C++ LR(k) nicht helfen soll, das hier:<br />
<a href="http://stackoverflow.com/questions/243383/why-c-cannot-be-parsed-with-a-lr1-parser" rel="nofollow">http://stackoverflow.com/questions/243383/why-c-cannot-be-parsed-with-a-lr1-parser</a><br />
sieht doch sehr gut aus?</p>
</blockquote>
<p>Danke, der Link hat mir wirklich weitergeholfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776912</guid><dc:creator><![CDATA[C++-Parser]]></dc:creator><pubDate>Sat, 12 Sep 2009 10:40:15 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 11:07:44 GMT]]></title><description><![CDATA[<p>life schrieb:</p>
<blockquote>
<p>Bashar schrieb:</p>
<blockquote>
<p>Meines Wissens sind LR(k)-Parser für endliches k&gt;=1 gleich mächtig.</p>
</blockquote>
<p>Laut <a href="http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html" rel="nofollow">http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html</a> nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>So ganz sicher bist du dir aber nicht, wenn ich den Smiley richtig interpretiere? Tipp: In der Folie geht es um Grammatiken, ich rede von Sprachen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776924</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Sat, 12 Sep 2009 11:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 11:28:16 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>life schrieb:</p>
<blockquote>
<p>Bashar schrieb:</p>
<blockquote>
<p>Meines Wissens sind LR(k)-Parser für endliches k&gt;=1 gleich mächtig.</p>
</blockquote>
<p>Laut <a href="http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html" rel="nofollow">http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html</a> nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>So ganz sicher bist du dir aber nicht, wenn ich den Smiley richtig interpretiere?</p>
</blockquote>
<p>Ich kenne den Beweis dafür nicht, vertraue dem Prof. aber mehr als dir. Aber deinem &quot;Tipp&quot; entnehme ich mal, dass deine Aussage eh anders gemeint war?</p>
<blockquote>
<p>Tipp: In der Folie geht es um Grammatiken, ich rede von Sprachen.</p>
</blockquote>
<p>D.h., du willst eigentlich sagen, dass jede LR(k) parsebare Grammatik sich auch in eine äquivalente LR(1) parsebare Grammatik umformen lässt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776935</guid><dc:creator><![CDATA[life]]></dc:creator><pubDate>Sat, 12 Sep 2009 11:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 11:42:13 GMT]]></title><description><![CDATA[<p>Ich hatte 1 Semester Compilerbau, aber gerafft hab ich das ganze LL, LR Zeugs etc. nie richtig. Ich könnte auch niemals ansatzweise einen echten Compiler für C oder sowas schreiben.</p>
<p>Es beruhigt mich zu sehen, dass offenbar die meisten anderen auch wenig Plan von Compilerbau haben. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776942</guid><dc:creator><![CDATA[ExStudi]]></dc:creator><pubDate>Sat, 12 Sep 2009 11:42:13 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 11:52:32 GMT]]></title><description><![CDATA[<p>life schrieb:</p>
<blockquote>
<p>Bashar schrieb:</p>
<blockquote>
<p>life schrieb:</p>
<blockquote>
<p>Bashar schrieb:</p>
<blockquote>
<p>Meines Wissens sind LR(k)-Parser für endliches k&gt;=1 gleich mächtig.</p>
</blockquote>
<p>Laut <a href="http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html" rel="nofollow">http://ag-kastens.upb.de/lehre/material/plac/folien/Folie321.html</a> nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>So ganz sicher bist du dir aber nicht, wenn ich den Smiley richtig interpretiere?</p>
</blockquote>
<p>Ich kenne den Beweis dafür nicht, vertraue dem Prof. aber mehr als dir. Aber deinem &quot;Tipp&quot; entnehme ich mal, dass deine Aussage eh anders gemeint war?</p>
<blockquote>
<p>Tipp: In der Folie geht es um Grammatiken, ich rede von Sprachen.</p>
</blockquote>
<p>D.h., du willst eigentlich sagen, dass jede LR(k) parsebare Grammatik sich auch in eine äquivalente LR(1) parsebare Grammatik umformen lässt?</p>
</blockquote>
<p>Was er sagen will ist, dass jede Sprache die von einer LR(k) (k&gt;1) Grammatik beschrieben/erzeugt wird auch durch eine LR(1) Grammatik beschrieben/erzeugt werden kann. Weiß jetzt nicht ob du das mit Äquivalenz gemeint hast, aber ich gehe mal davon aus, dass du mit Äquivalenz zweier Grammatiken meinst, dass sie die selbe Sprache erzeugen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776943</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776943</guid><dc:creator><![CDATA[C++-Parser]]></dc:creator><pubDate>Sat, 12 Sep 2009 11:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 12:09:56 GMT]]></title><description><![CDATA[<p>C++-Parser schrieb:</p>
<blockquote>
<blockquote>
<p>D.h., du willst eigentlich sagen, dass jede LR(k) parsebare Grammatik sich auch in eine äquivalente LR(1) parsebare Grammatik umformen lässt?</p>
</blockquote>
<p>Was er sagen will ist, dass jede Sprache die von einer LR(k) (k&gt;1) Grammatik beschrieben/erzeugt wird auch durch eine LR(1) Grammatik beschrieben/erzeugt werden kann. Weiß jetzt nicht ob du das mit Äquivalenz gemeint hast, aber ich gehe mal davon aus, dass du mit Äquivalenz zweier Grammatiken meinst, dass sie die selbe Sprache erzeugen.</p>
</blockquote>
<p>Ja das habe ich mit Äquivalenz gemeint. Damit sind dann meine Aussage und deine Aussage auch &quot;äquivalent&quot; ;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1776952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1776952</guid><dc:creator><![CDATA[life]]></dc:creator><pubDate>Sat, 12 Sep 2009 12:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 20:29:16 GMT]]></title><description><![CDATA[<p>life schrieb:</p>
<blockquote>
<p>Ich kenne den Beweis dafür nicht, vertraue dem Prof. aber mehr als dir.</p>
</blockquote>
<p>Da wird er sich aber freuen. Nicht darüber, dass dir der Beweis nicht einfällt, natürlich. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<blockquote>
<p>D.h., du willst eigentlich sagen, dass jede LR(k) parsebare Grammatik sich auch in eine äquivalente LR(1) parsebare Grammatik umformen lässt?</p>
</blockquote>
<p>Das wäre eine äquivalente Formulierung, ja. Die Frage war, ob C++ von einem LR(k)-Parser erkannt werden kann, d.h. ob die Sprache C++ LR(k) ist. Wenn wir aber wissen, dass C++ nicht LR(1) ist, wissen wir aufgrund dieser Umformbarkeit auch, dass C++ nicht LR(k) ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1777321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1777321</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Sat, 12 Sep 2009 20:29:16 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 22:55:13 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>Das wäre eine äquivalente Formulierung, ja.</p>
</blockquote>
<p>Ja, ich habe jetzt verstanden, dass du die &quot;Mächtigkeit&quot; auf die Menge der akzeptierten Sprachen und nicht auf die Menge der parsebaren Grammatiken bezogen hast. Trotzdem wundere ich mich etwas über deine Unfreundlichkeit. Ich will es aber mal nicht persönlich nehmen ;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1777414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1777414</guid><dc:creator><![CDATA[life]]></dc:creator><pubDate>Sat, 12 Sep 2009 22:55:13 GMT</pubDate></item><item><title><![CDATA[Reply to Kann man C++ mit einem LL(k) oder LR(k) Parser parsen? on Sat, 12 Sep 2009 23:27:24 GMT]]></title><description><![CDATA[<p>life schrieb:</p>
<blockquote>
<p>Trotzdem wundere ich mich etwas über deine Unfreundlichkeit.</p>
</blockquote>
<p>Das wundert mich, dass dich das wundert. Lies doch mal mein und dein erstes Posting mit dem Wissen, das du jetzt hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1777440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1777440</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Sat, 12 Sep 2009 23:27:24 GMT</pubDate></item></channel></rss>