all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nikolai Weibull <now@disu.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Users <help-gnu-emacs@gnu.org>
Subject: Re: Using smie for Relax NG compact syntax
Date: Tue, 10 Feb 2015 08:17:19 +0100	[thread overview]
Message-ID: <CADdV=MshGu_Qu6gp4k9b-KpZrFGY=MydwAdhws21=ovjyvDFOw@mail.gmail.com> (raw)
In-Reply-To: <jwvbnl3rpn2.fsf-monnier+gmane.emacs.help@gnu.org>

On Mon, Feb 9, 2015 at 5:56 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>        (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’t seem to resolve.



  reply	other threads:[~2015-02-10  7:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-09 15:49 Using smie for Relax NG compact syntax Nikolai Weibull
2015-02-09 16:56 ` Stefan Monnier
2015-02-10  7:17   ` Nikolai Weibull [this message]
2015-02-10 20:13     ` Stefan Monnier
2015-02-11  7:55       ` Nikolai Weibull
2015-02-11 15:54         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADdV=MshGu_Qu6gp4k9b-KpZrFGY=MydwAdhws21=ovjyvDFOw@mail.gmail.com' \
    --to=now@disu.se \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.