<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/pyggy</id>
  <title type="text">pyggy Google Group</title>
  <subtitle type="text">
  This mailing list is for discussions related to the PyGgy parser generator for Python. This list may be used to discuss how to use PyGgy as well as report bugs and discuss implementation issues.
  </subtitle>
  <link href="/group/pyggy/feed/atom_v1_0_msgs.xml" rel="self" title="pyggy feed"/>
  <updated>2008-02-08T19:46:40Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>SocraticD@gmail.com</name>
  <email>socrat...@gmail.com</email>
  </author>
  <updated>2008-02-08T19:46:40Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/0b959bb46846e83d/6d21679c9bea42ee?show_docid=6d21679c9bea42ee</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/0b959bb46846e83d/6d21679c9bea42ee?show_docid=6d21679c9bea42ee"/>
  <title type="text">issue implementing the following in a .pyl file</title>
  <summary type="html" xml:space="preserve">
  I&#39;m parsing IIS logs and am having a hell of a time getting a regex &lt;br&gt; that will work for the page portion of the file. &lt;br&gt; &lt;p&gt;given something like : 2007-02-09 23:59:59 GET /ABC.aspx or &lt;br&gt; 2007-02-09 23:59:59 GET /Search/Styles/XYZ.css &lt;br&gt; &lt;p&gt;i need to match on the blah.aspx, blah/blah.css, etc.. portion of the
  </summary>
  </entry>
  <entry>
  <author>
  <name>Václav Haisman</name>
  <email>v.hais...@sh.cvut.cz</email>
  </author>
  <updated>2007-01-26T08:22:12Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7441564c851832a8/830428b012d4bb21?show_docid=830428b012d4bb21</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7441564c851832a8/830428b012d4bb21?show_docid=830428b012d4bb21"/>
  <title type="text">Re: Getting some more info about from ParseError.</title>
  <summary type="html" xml:space="preserve">
  No activity at all :( &lt;br&gt; C&#39;mon, somebody say something...
  </summary>
  </entry>
  <entry>
  <author>
  <name>Václav Haisman</name>
  <email>v.hais...@sh.cvut.cz</email>
  </author>
  <updated>2006-11-29T08:42:33Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7441564c851832a8/64c58867790aac3e?show_docid=64c58867790aac3e</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7441564c851832a8/64c58867790aac3e?show_docid=64c58867790aac3e"/>
  <title type="text">Getting some more info about from ParseError.</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; I am using Pyggy to parse our simple DSL. Most of the time it is just &lt;br&gt; simple expressions. While the expressions are by the grammar everything &lt;br&gt; works fine. The problem is that when the expression is bad i.e. &#39;(1 + 2&#39; &lt;br&gt; or &#39;1 + / 2&#39; the thrown ParseError exception has very little info about &lt;br&gt; the error except the bad token and its text. It would be very useful if
  </summary>
  </entry>
  <entry>
  <author>
  <name>Ned Batchelder</name>
  <email>ned...@gmail.com</email>
  </author>
  <updated>2006-11-29T01:58:18Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/39ac1346d0bdfa0f/2c9e94a8ac2959b1?show_docid=2c9e94a8ac2959b1</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/39ac1346d0bdfa0f/2c9e94a8ac2959b1?show_docid=2c9e94a8ac2959b1"/>
  <title type="text">Parsing incpmplete statements?</title>
  <summary type="html" xml:space="preserve">
  I would like to use PyGgy to parse command-line input, similar to the &lt;br&gt; way SQL is parsed by a database command-line utility. When entering a &lt;br&gt; SQL statement, if no semi-colon is encountered, then the prompt changes &lt;br&gt; to indicate the statement is incomplete, and more input is collected. &lt;br&gt; I&#39;m not that familiar with the interfaces between PyGgy and PyLly. Is
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Newsham</name>
  <email>news...@lava.net</email>
  </author>
  <updated>2006-08-01T17:37:51Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/c96b1cbc23f18440?show_docid=c96b1cbc23f18440</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/c96b1cbc23f18440?show_docid=c96b1cbc23f18440"/>
  <title type="text">Re: Contextless between the grammar and the lexer</title>
  <summary type="html" xml:space="preserve">
  I don&#39;t have time for a full reply right now, I&#39;ll try to give &lt;br&gt; a more complete reply in about a week, but I wanted to mention &lt;br&gt; a few points... &lt;br&gt; This is the intended behavior. If the parse can be ambiguous the &lt;br&gt; grammar rules will have to be written differently. The number of &lt;br&gt; possible trees can grow quite large and I didn&#39;t want to separate
  </summary>
  </entry>
  <entry>
  <author>
  <name>Humberto Abdelnur</name>
  <email>hum...@gmail.com</email>
  </author>
  <updated>2006-08-01T08:18:04Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/cfad30e15364e40b?show_docid=cfad30e15364e40b</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/cfad30e15364e40b?show_docid=cfad30e15364e40b"/>
  <title type="text">Re: Contextless between the grammar and the lexer</title>
  <summary type="html" xml:space="preserve">
  Hi back, &lt;br&gt; As i told you early i was planning to modify the code in order to solve the &lt;br&gt; problems that i had. &lt;br&gt; During that i found and fix what i think was a bug. &lt;br&gt; It is when we have an ambiguous grammar and it is asked to process the tree &lt;br&gt; with the ambiguous flag. The problem is that it call the grammar function
  </summary>
  </entry>
  <entry>
  <author>
  <name>Humberto Abdelnur</name>
  <email>hum...@gmail.com</email>
  </author>
  <updated>2006-07-18T19:09:10Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/ccb3c5710416039c?show_docid=ccb3c5710416039c</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/ccb3c5710416039c?show_docid=ccb3c5710416039c"/>
  <title type="text">Re: Contextless between the grammar and the lexer</title>
  <summary type="html" xml:space="preserve">
  thanks for the quick reply. &lt;br&gt; What you say is right but I guess it does not apply to the use i want to &lt;br&gt; give to my tool. To let you understand my problem, what i want to do is to &lt;br&gt; take the ABNF of a RFC and automatically generate the parser (among with &lt;br&gt; other stuff) for the protocol in question. In such case i imagine that it
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Newsham</name>
  <email>news...@lava.net</email>
  </author>
  <updated>2006-07-18T18:00:47Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/c4273bea3b7e8c40?show_docid=c4273bea3b7e8c40</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/c4273bea3b7e8c40?show_docid=c4273bea3b7e8c40"/>
  <title type="text">Re: Contextless between the grammar and the lexer</title>
  <summary type="html" xml:space="preserve">
  Yes. The parser will handle ambiguous grammars, but the lexer &lt;br&gt; does not handle ambiguous lexing rules. However, in your case &lt;br&gt; you can disambiguate entirely in the lexer: &lt;br&gt; Alternately you could separate the tokens into non-overlapping &lt;br&gt; tokens and then use those in your grammar. For this problem its &lt;br&gt; not very ideal, but it may be useful in other situations.
  </summary>
  </entry>
  <entry>
  <author>
  <name>humbol</name>
  <email>hum...@gmail.com</email>
  </author>
  <updated>2006-07-18T13:58:09Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/d72dbe0f3b05f0b9?show_docid=d72dbe0f3b05f0b9</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/7c47bec90e50ce0e/d72dbe0f3b05f0b9?show_docid=d72dbe0f3b05f0b9"/>
  <title type="text">Contextless between the grammar and the lexer</title>
  <summary type="html" xml:space="preserve">
  Hi all, &lt;br&gt; I want to use this tool in order to generate from an ABNF grammar a &lt;br&gt; parser for it and i m running to some problems. My election was due &lt;br&gt; that together with DParser are the only GLR parser generators. &lt;br&gt; So far i saw that the rules specified earlier have precedence. My &lt;br&gt; problem is that there is no context with the grammar. To be more
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Newsham</name>
  <email>news...@lava.net</email>
  </author>
  <updated>2006-05-26T15:56:09Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/95f146bffaf4ac7a?show_docid=95f146bffaf4ac7a</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/95f146bffaf4ac7a?show_docid=95f146bffaf4ac7a"/>
  <title type="text">Re: Yet Another ambiguous grammar</title>
  <summary type="html" xml:space="preserve">
  Sorry for the delay in replying. Rewriting your grammar in this &lt;br&gt; way should remove the ambiguity from your grammar. Its only the &lt;br&gt; case where something could be either a tuple (starting with &lt;br&gt; a parenthesis) or an expression (potentially starting with &lt;br&gt; a parenthesis) that should give rise to ambiguity. &lt;br&gt; Here the parser cannot disambiguate look at the lookahead
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave Hughes</name>
  <email>d...@waveform.plus.com</email>
  </author>
  <updated>2006-05-21T07:04:34Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/8edce0d0934a7693?show_docid=8edce0d0934a7693</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/8edce0d0934a7693?show_docid=8edce0d0934a7693"/>
  <title type="text">Re: Yet Another ambiguous grammar</title>
  <summary type="html" xml:space="preserve">
  Hi Tim, &lt;br&gt; Thanks for the quick response. I think it is possible to tell the &lt;br&gt; difference between a singleton tuple and a parenthesized expression, &lt;br&gt; but only within the context of some other operation. I&#39;ll try and &lt;br&gt; expand on my prior example to demonstrate: &lt;br&gt; The VALUES statement in DB2 allows one to generate a temporary table on
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Newsham</name>
  <email>news...@lava.net</email>
  </author>
  <updated>2006-05-20T08:53:17Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/12a6e175bf1dba4e?show_docid=12a6e175bf1dba4e</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/12a6e175bf1dba4e?show_docid=12a6e175bf1dba4e"/>
  <title type="text">Re: Yet Another ambiguous grammar</title>
  <summary type="html" xml:space="preserve">
  As you describe it, the grammar is ambiguous. How do you tell the &lt;br&gt; difference between a singleton tuple and a parenthesized expression? As a &lt;br&gt; human, I cant tell the difference, so I can&#39;t really tell you how to make &lt;br&gt; a machine tell the difference. Can you provide an example of a case where &lt;br&gt; it is clearly a tuple and another case where it is clearly a parenthesized
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dave Hughes</name>
  <email>d...@waveform.plus.com</email>
  </author>
  <updated>2006-05-19T20:09:00Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/1cbc84970cbc6d6f?show_docid=1cbc84970cbc6d6f</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/aed442d33eeee0ef/1cbc84970cbc6d6f?show_docid=1cbc84970cbc6d6f"/>
  <title type="text">Yet Another ambiguous grammar</title>
  <summary type="html" xml:space="preserve">
  I&#39;ve been attempting to put together a parser to recognize a &lt;br&gt; substantial subset of an SQL dialect (specifically the DB2 dialect), &lt;br&gt; but have run into ambiguity problems fairly early on. &lt;br&gt; Here&#39;s a (much) reduced grammar demonstrating the issue (the constant &lt;br&gt; and identifier non-terminals are omitted, but I can provide the
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tim Newsham</name>
  <email>news...@lava.net</email>
  </author>
  <updated>2006-04-23T18:14:12Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/166aa8ca5e6b2ce2/e60aee201cfa4495?show_docid=e60aee201cfa4495</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/166aa8ca5e6b2ce2/e60aee201cfa4495?show_docid=e60aee201cfa4495"/>
  <title type="text">Re: more ambiguous parser help</title>
  <summary type="html" xml:space="preserve">
  No. This is an entirely different grammar which does not have &lt;br&gt; any ambiguities. &lt;br&gt; Tim Newsham &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.lava.net/~newsham/&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>idadesub@gmail.com</name>
  <email>idade...@gmail.com</email>
  </author>
  <updated>2006-04-22T18:29:34Z</updated>
  <id>http://groups.google.com/group/pyggy/browse_thread/thread/166aa8ca5e6b2ce2/7e0284cab86e2532?show_docid=7e0284cab86e2532</id>
  <link href="http://groups.google.com/group/pyggy/browse_thread/thread/166aa8ca5e6b2ce2/7e0284cab86e2532?show_docid=7e0284cab86e2532"/>
  <title type="text">Re: more ambiguous parser help</title>
  <summary type="html" xml:space="preserve">
  So I found that if I move the commas down into the list branch, pyggy &lt;br&gt; no longer considers the grammar to be ambigous: &lt;br&gt; expression -&amp;gt; list; &lt;br&gt; list -&amp;gt; &lt;br&gt; COMMA CONSTANT COMMA &lt;br&gt; | COMMA CONSTANT COMMA CONSTANT COMMA &lt;br&gt; ; &lt;br&gt; So does pyggy only consider the multiple branches under the same &lt;br&gt; grammar branch?
  </summary>
  </entry>
</feed>
