Re: where do I send a bug in n3.n3/n3p.py?

Yosi Scharf wrote:

 > Subject: where do I send a bug in n3.n3/n3p.py?

For n3p.py, here or www-archive should be fine. For n3.n3, 
public-cwm-bugs is the better option, I think.

> {@forAll :x . :x :a :b} :v :c .

Fixed. There's a patch appended to this email [1], or you can also 
re-download the file [2], the n3proc tarball [3], or the all inclusive 
n3p tarball [4]. Choices, choices...

This is also a bug in the predictiveParser.py [5] upon which n3p.py is 
based, so I'll drop a note to public-cwm-bugs.

Thanks Yosi,

[1] $ diff -Naur n3p.py n3p+fixed.py [[[
--- n3p.py      2005-01-17 20:37:32.000000000 +0000
+++ n3p+fixed.py        2005-01-20 10:17:48.000000000 +0000
@@ -38,7 +38,6 @@
  start = 'http://www.w3.org/2000/10/swap/grammar/n3#document'

  r_whitespace = re.compile(r'[ \t\r\n]*(?:(?:#[^\n]*)?\r?\n)?')
-wspace = set(' \t\r\n')
  singleCharacterSelectors = "\t\r\n !\"#$%&'()*.,+/;<=>?[\\]^`{|}~"
  r_qname = re.compile(r'([A-Za-z0-9_:]*)')
  r_name = re.compile(r'([A-Za-z0-9_]*)')
@@ -130,7 +129,7 @@
           return '0'

        if ch == '@':
-         if self.pos and (self.data[self.pos-1] not in wspace):
+         if self.pos and (self.data[self.pos-1] == '"'):
              return '@'
           name = r_name.match(self.data, self.pos + 1).group(1)
           if name == 'keywords':
]]]
[2] http://inamidst.com/n3p/n3p.py
[3] http://inamidst.com/n3p/n3proc.tar.gz
[4] http://inamidst.com/n3p/n3p.tar.gz
[5] http://www.w3.org/2000/10/swap/grammar/predictiveParser.py

-- 
Sean B. Palmer, http://inamidst.com/sbp/

Received on Thursday, 20 January 2005 10:52:42 UTC