Return-Path: megacz@cs.berkeley.edu Received: from 216.237.119.187 (GODEL.MEGACZ.COM) by null (org.ibex.mail.protocol.SMTP) with ESMTP for ; Thu, 28 Sep 2006 12:36:30 -0700 Received: from 127.0.0.1 (GODEL.MEGACZ.COM) by null (org.ibex.mail.protocol.SMTP) with SMTP for ; Thu, 28 Sep 2006 12:36:29 -0700 Received: by godel.megacz.com (sSMTP sendmail emulation); Thu, 28 Sep 2006 12:36:28 -0700 To: Simon Hay Cc: sbp-interest@research.cs.berkeley.edu Subject: [sbp-interest] Re: interspersing whitespace References: <99F37304-CFDF-4FBB-ABA2-25CFC079A685@lincoln.ox.ac.uk> <41BCD451-2EFF-47D8-8D42-58FD2A2387C9@lincoln.ox.ac.uk> From: Adam Megacz Organization: UC Berkeley X-Home-Page: http://www.megacz.com/ Date: Thu, 28 Sep 2006 12:36:28 -0700 In-Reply-To: <41BCD451-2EFF-47D8-8D42-58FD2A2387C9@lincoln.ox.ac.uk> (Simon Hay's message of "Wed, 27 Sep 2006 11:29:51 +0100") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Envelope-To: sbp-interest@research.cs.berkeley.edu List-Id: The Scannerless Boolean Parser Simon Hay writes: > When I try using > s = "safe" "(" [0-9]+ ")" /ws > ws = [\r\n ]** > but if I try to parse > safe ( 12 ) > or anything else with spaces, I get Hrm, this seems to work for me. Try adding these lines to the bottom of tests/regression.tc, and then run "make test": testcase { input "safe ( 12 )"; output "{1 2}"; s = "safe" "(" [0-9]+ ")" /ws ws = [\r\n ]** } Keep in mind that your grammar is written to reject files with trailing whitespace (like the trailing \n that emacs adds to files). Could you zip up a copy of your complete code and post it somewhere so I can reproduce the problem? - a -- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380