help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using smie for Relax NG compact syntax


From: Nikolai Weibull
Subject: Re: Using smie for Relax NG compact syntax
Date: Wed, 11 Feb 2015 08:55:04 +0100

On Tue, Feb 10, 2015 at 9:13 PM, Stefan Monnier
<address@hidden> wrote:
>> OK.  This results in an assertion failing in smie-prec2->grammar:
>> (cl-assert (numberp (car cons)))
>
> I'd need more info to figure out what's going on.  E.g. a backtrace,
> and maybe the chunk of code where it signals the error.

Yeah, sorry.  Here’s the whole rnc-mode.el.  The backtrace doesn’t
seem to tell us much (parts of the backtrace that only involve
invoking eval-buffer have been elided):

Debugger entered--Lisp error: (cl-assertion-failed (numberp (car cons)))
  signal(cl-assertion-failed ((numberp (car cons))))
  smie-prec2->grammar(#s(hash-table size 65 test equal rehash-size 1.5
rehash-threshold 0.8 data (:smie-open/close-alist (("element" .
opener)) :smie-closer-alist nil ...)))
  (defconst rnc-mode-smie-grammar (smie-prec2->grammar
(smie-bnf->prec2 (quote ((id) (pattern ("element" id) ("empty")))))))
  eval-buffer()  ; Reading at buffer position 2901
  #<subr call-interactively>(eval-buffer record nil)
  funcall(#<subr call-interactively> eval-buffer record nil)
  …

Attachment: rnc-mode.el
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]