[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: |
Tue, 10 Feb 2015 08:17:19 +0100 |
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.