<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>ply-hack Google Group</title>
  <link>http://groups.google.com/group/ply-hack</link>
  <description>Discussion related to the development and use of PLY (Python Lex-Yacc).</description>
  <language>en-US</language>
  <item>
  <title>ply custom token precedence</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/4677a6c06cdacbd0/8a970281609633c5?show_docid=8a970281609633c5</link>
  <description>
  I suggest adding a way to provide a custom precedence for the token regexs. &lt;br&gt; I&#39;m currently stuck because as far as I can tell, there isn&#39;t one. &lt;br&gt; Currently, it always sorts by the first line number of the function, which &lt;br&gt; is nice if you&#39;re defining the functions manually, but a huge pain if &lt;br&gt; you&#39;re defining the rules programmatically. Since
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/4677a6c06cdacbd0</guid>
  <author>
  n210241048...@gmail.com
  (Robert Grosse)
  </author>
  <pubDate>Sat, 30 Mar 2013 03:49:32 UT
</pubDate>
  </item>
  <item>
  <title>Redirecting Ply error messages</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/3f76625ce37df2ec/2a371e0a183392cd?show_docid=2a371e0a183392cd</link>
  <description>
  I am using Ply to parse information supplied to an HTML form. Is there some way &lt;br&gt; to have Ply append error messages to a list from which they can be retrieved by &lt;br&gt; the Python script I use to process the form? Since the HTML form and the Python &lt;br&gt; script will be hosted on a machine that is not under my control, I would prefer
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/3f76625ce37df2ec</guid>
  <author>
  garl...@csail.mit.edu
  (Steve Garland)
  </author>
  <pubDate>Mon, 14 Jan 2013 19:37:33 UT
</pubDate>
  </item>
  <item>
  <title>advise on using ply</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/7d306f4c34dfd0a5/937c7fc67a8f55b9?show_docid=937c7fc67a8f55b9</link>
  <description>
  Hello: I am writing a program that is made up of a collection of POV-Ray &lt;br&gt; macros. POV-Ray is available at povray.org. It is a ray-tracing program that &lt;br&gt; reads a scene description language (SDL) to create photo-realistic images. &lt;br&gt; At this time my program (for modeling building information) is so huge that
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/7d306f4c34dfd0a5</guid>
  <author>
  kene.men...@illom.org
  (Kene Meniru)
  </author>
  <pubDate>Mon, 24 Dec 2012 12:16:40 UT
</pubDate>
  </item>
  <item>
  <title>p_error parameters lack information</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/b29ab0b8cd50ea03/a8768f668c538896?show_docid=a8768f668c538896</link>
  <description>
  One can define a p_error function to handle syntax errors, but &lt;br&gt; unfortunately, Ply provides no useful information to the function. I&#39;ve had &lt;br&gt; to resort to an ugly reflection hack just to provide meaningful error &lt;br&gt; messages. Would it be possible to improve the interface so that Ply &lt;br&gt; actually provides access to this information?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/b29ab0b8cd50ea03</guid>
  <author>
  n210241048...@gmail.com
  (Robert Grosse)
  </author>
  <pubDate>Mon, 29 Oct 2012 02:15:14 UT
</pubDate>
  </item>
  <item>
  <title>preserving whitespace</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/93696e5241f7c030/f3546ebb443d665b?show_docid=f3546ebb443d665b</link>
  <description>
  I am writing a parser for a grammar, and I want to allow Python sections &lt;br&gt; (delimitd by &#39;\n&amp;lt;-\n&#39; and &#39;\n-&amp;gt;\n&#39;) within code generated from that &lt;br&gt; grammar. I do not want to parse Python; I will feed it to exec. I just want &lt;br&gt; to get the whole lines, including whitespace. &lt;br&gt; This is in my lexer: &lt;br&gt; def t_begin_pycode(self, t):
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/93696e5241f7c030</guid>
  <author>
  enriquepa...@gmail.com
  (Enrique Pérez)
  </author>
  <pubDate>Fri, 26 Oct 2012 14:48:15 UT
</pubDate>
  </item>
  <item>
  <title>Help with Java&#39;s &lt;&lt;</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/608b3d605b175fd8/875371401945694a?show_docid=875371401945694a</link>
  <description>
  Hi, I&#39;m trying to parse Java and it&#39;s going ok so far, except for one &lt;br&gt; problem that I just can&#39;t solve, regarding the &amp;gt; token. &lt;br&gt; Consider the following 3 lines: &lt;br&gt; someType&amp;lt;anotherType&amp;gt;&amp;gt; a; &lt;br&gt; if (b &amp;gt; c) &lt;br&gt; d &amp;gt;&amp;gt; e; &lt;br&gt; If I define shift-right as: &lt;br&gt; SHR: &#39;&amp;gt;&amp;gt;&#39; &lt;br&gt; expression: var SHR var &lt;br&gt; then the lexer will match the template code, and the parser will break.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/608b3d605b175fd8</guid>
  <author>
  ere...@gmail.com
  (Erez)
  </author>
  <pubDate>Thu, 04 Oct 2012 17:58:37 UT
</pubDate>
  </item>
  <item>
  <title>Why &#39;Illegal character&quot; happens?</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/64b28166bb7dd402/a4156d3924a107c4?show_docid=a4156d3924a107c4</link>
  <description>
  Hello, &lt;br&gt; &lt;p&gt;I defined rules, which I think are correct but I got an error indicating me &lt;br&gt; &amp;quot;Illegal character&#39;. &lt;br&gt; &lt;p&gt;More details are here: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://stackoverflow.com/questions/11809291/parsing-why-a-rule-i-defined-isnt-matched&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;Can you tell me what is the reason? &lt;br&gt; &lt;p&gt;Thank you in advance. &lt;br&gt; &lt;p&gt;Konstantin Tcholokachvili
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/64b28166bb7dd402</guid>
  <author>
  tchol...@gmail.com
  (Konstantin Tcholokachvili)
  </author>
  <pubDate>Sat, 04 Aug 2012 22:45:59 UT
</pubDate>
  </item>
  <item>
  <title>100 groups in python re limitation slows down PLY performance</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/8902e76694cbd460/08e2fe7ca52014fb?show_docid=08e2fe7ca52014fb</link>
  <description>
  Hi all, jfyi &lt;br&gt; I&#39;ve added just one token to my lexer rules and stuck in 100 groups limit &lt;br&gt; in python re &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://stackoverflow.com/questions/478458/python-regular-expressions-with-more-than-100-groups&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; PLY has workaround in its code - when your master re exceeds 100 groups, &lt;br&gt; PLY catches AssertionError from python, splits master re into parts and
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/8902e76694cbd460</guid>
  <author>
  viy....@gmail.com
  (viy)
  </author>
  <pubDate>Fri, 17 Aug 2012 12:52:09 UT
</pubDate>
  </item>
  <item>
  <title>Problem with empty production. Syntax error on supposedly correct input.</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/5fd6246e00972f7f/e54c3e00fff757d2?show_docid=e54c3e00fff757d2</link>
  <description>
  Hello, &lt;br&gt; &lt;p&gt;I decided to use ply to implement assembler from &amp;quot;Elements of computer &lt;br&gt; systems&amp;quot; and in the process I noticed an unexpected behaviour (error &lt;br&gt; on someone&#39;s part) on something that in my opinion looks ok. &lt;br&gt; &lt;p&gt;Here&#39;s the program showing the error: &lt;br&gt; &lt;p&gt; import ply.lex as lex &lt;br&gt; import ply.yacc as yacc
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/5fd6246e00972f7f</guid>
  <author>
  grzegorzmi...@gmail.com
  (Grzegorz Milka)
  </author>
  <pubDate>Tue, 31 Jul 2012 15:54:03 UT
</pubDate>
  </item>
  <item>
  <title>experimental python library for SQL queries</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/680067d2bece733a/20cb99c8b5c07f04?show_docid=20cb99c8b5c07f04</link>
  <description>
  Hi all, &lt;br&gt; I tried posting this a few weeks ago, but I still have not seen it show up &lt;br&gt; on this list. If this message shows up as a duplicate, I am sorry for the &lt;br&gt; spam. &lt;br&gt; I have written a Python library that allows one to express general SELECT &lt;br&gt; queries as a string of text, but without raw SQL. The parsing is done
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/680067d2bece733a</guid>
  <author>
  jeffery.kl...@gmail.com
  (Jeff)
  </author>
  <pubDate>Thu, 19 Jul 2012 15:40:14 UT
</pubDate>
  </item>
  <item>
  <title>ply handling huge files</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/b1c34e3419bed05b/bdfff4a9f774ce6e?show_docid=bdfff4a9f774ce6e</link>
  <description>
  Hi, &lt;br&gt; Recently I was developing a parser to parse text files with a &lt;br&gt; particular format. The huge file sizes made it to hang. So I read the file &lt;br&gt; in chunks and passed it to ply. But this caused the whole parser to break &lt;br&gt; as the tokens sometime fall between the file chunks. This lead me to add &lt;br&gt; some code to the lex and yacc module of ply so that it loads file chunks if
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/b1c34e3419bed05b</guid>
  <author>
  saravanan.manickanai...@gmail.com
  (PyRate)
  </author>
  <pubDate>Tue, 17 Jul 2012 09:54:58 UT
</pubDate>
  </item>
  <item>
  <title>Yacc - nesting of if - else if - else - end ifstatements</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/48090d60a9e9e323/2cd1a625a5e45086?show_docid=2cd1a625a5e45086</link>
  <description>
  Hi all! &lt;br&gt; can somebody help me with writing correct grammar rules for nested if &lt;br&gt; statements? &lt;br&gt; In my language, I am able to write constructions like this: &lt;br&gt; (IF CONDITION) &lt;br&gt; some statements &lt;br&gt; (IF CONDITION) &lt;br&gt; some statements &lt;br&gt; (ELSE IF CONDITION) &lt;br&gt; some statements &lt;br&gt; (ELSE IF CONDITION) &lt;br&gt; some statements &lt;br&gt; (ELSE IF CONDITION)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/48090d60a9e9e323</guid>
  <author>
  joshuabo...@gmail.com
  (Joshua Boshi)
  </author>
  <pubDate>Thu, 12 Jul 2012 16:19:05 UT
</pubDate>
  </item>
  <item>
  <title>Parsing strace output: a job for PLY?</title>
  <link>http://groups.google.com/group/ply-hack/browse_thread/thread/68ef5fd9ce1d92f1/89f07f3f046d858b?show_docid=89f07f3f046d858b</link>
  <description>
  Howdy, &lt;br&gt; &lt;p&gt;Necessity has spawned an attempt to invent a tool to explain strace output. &lt;br&gt; &lt;p&gt;I am trying to figure out why my installation of Shotwell isn&#39;t responding &lt;br&gt; to configuration correctly, strace offers debugging help. &lt;br&gt; &lt;p&gt;I&#39;m examining the output of &lt;br&gt; $ strace -o shotwell.strace shotwell &lt;br&gt; &lt;p&gt;I&#39;ve written a class which maintains the current fd:filename association,
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ply-hack/browse_thread/thread/68ef5fd9ce1d92f1</guid>
  <author>
  kten...@gmail.com
  (Kent Tenney)
  </author>
  <pubDate>Mon, 02 Jul 2012 19:39:56 UT
</pubDate>
  </item>
  </channel>
</rss>
