From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.emacs.help Subject: Re: Using smie for Relax NG compact syntax Date: Tue, 10 Feb 2015 08:17:19 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423552670 18003 80.91.229.3 (10 Feb 2015 07:17:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 07:17:50 +0000 (UTC) Cc: Emacs Users To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 08:17:50 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YL54w-0002eI-3d for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 08:17:50 +0100 Original-Received: from localhost ([::1]:38035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL54v-00050i-Cy for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 02:17:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL54T-0004ue-Hz for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 02:17:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL54S-0001u8-I0 for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 02:17:21 -0500 Original-Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:48996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL54S-0001tt-Bm for help-gnu-emacs@gnu.org; Tue, 10 Feb 2015 02:17:20 -0500 Original-Received: by mail-we0-f181.google.com with SMTP id w62so14224680wes.12 for ; Mon, 09 Feb 2015 23:17:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=6EvgH55tZLhZlW6fDqq9JFb3aomZHNlA1zi8y92j9ro=; b=Kwcg50dDk15T9Ksmq0CK7IsAarN3SijEBR5OshklvxcTpq66I1Q2H7HZrFFqk6IVNF E7yUnN5fmBmbbM2h9yK4KY7GtWyPtn1Yg2oB+IfUnb1JNDYQlAM7cCYpaFdAohjR0A1V 9koEtadI6A1C+OrVtpRWkfs2BWk5VBnium55f4JlyrYvTN2ec5BS3I4weai84nZ10TYR B01Oj1EoKcaRavjfXXYr5eW89IzP/rH38MZ2v8uWK5d2HMSD5e73oXkIhASLjZU0q/rC 8H72SJx4lBHhYLmFx6PH+ebMt5zlHd+SnTjhrhAzZkuxlt2OI0MZlSijCz9AL+61f4ns UH+w== X-Received: by 10.181.29.168 with SMTP id jx8mr23358290wid.8.1423552639755; Mon, 09 Feb 2015 23:17:19 -0800 (PST) Original-Received: by 10.216.30.137 with HTTP; Mon, 9 Feb 2015 23:17:19 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: PmQwJw7H_CtROK24WWPbIPd_jew X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102613 Archived-At: On Mon, Feb 9, 2015 at 5:56 PM, Stefan Monnier w= rote: >> (pattern ("element" id "{" pattern "}") ("empty")))))) > > Better make this > > (pattern ("element" id) ("empty")))))) > > Since you want "{" to be an "opener" (i.e. something similar to an open > parenthesis) whereas if it's in the middle of a production rule it won't > be treated as an opener. OK. This results in an assertion failing in smie-prec2->grammar: (cl-assert (numberp (car cons))) that I can=E2=80=99t seem to resolve.