From: Stefan Monnier <monnier@iro.umontreal.ca>
To: cauderlier@crans.org (Raphaël Cauderlier)
Cc: 16416@debbugs.gnu.org
Subject: bug#16416: 24.3; [SMIE] Assertion failure in smie-prec2->grammar
Date: Mon, 13 Jan 2014 20:04:07 -0500 [thread overview]
Message-ID: <jwvha97qt3u.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87y52mo11v.fsf@mojito.crans.org> ("Raphaël Cauderlier"'s message of "Sat, 11 Jan 2014 18:55:56 +0100")
> (smie-prec2->grammar (smie-bnf->prec2 '((name) (l ("a" name)))))
> This raised the following error message:
> (cl-assertion-failed (numberp (car cons)))
Hmm..indeed. The assertion can be removed, but then we bump into
another signal. The problem is that the grammar is simply "too
trivial" and smie.el seems to bump into invalid assumptions in
that case. As soon as you add some other terminal to the "l" rule, or
the "name" rule, or you use "l" somewhere, the problem disappears.
Intuitively this problem might manifest itself in a more realistic
grammar, yet I don't quite see in which case, and for that reason
I don't really see yet what would be the right fix. I'm tempted to
think that the problem is partly to blame on smie-bnf->prec2 which
generates a prec2 table where "a" is missing (except for the side info
of :smie-open/close-alist).
Stefan
next prev parent reply other threads:[~2014-01-14 1:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-11 17:55 bug#16416: 24.3; [SMIE] Assertion failure in smie-prec2->grammar Raphaël Cauderlier
2014-01-14 1:04 ` Stefan Monnier [this message]
2014-01-14 10:03 ` Raphael Cauderlier
2021-07-15 5:06 ` Lars Ingebrigtsen
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=jwvha97qt3u.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=16416@debbugs.gnu.org \
--cc=cauderlier@crans.org \
/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.