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

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

Re: SMIE examples or guides


From: Stefan Monnier
Subject: Re: SMIE examples or guides
Date: Tue, 28 Jun 2016 17:42:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> Yes, I understand.  But I'm completely at loss on how to do that or
> even getting started.  I have seen what rules octave-mode has, but I

Have you looked at its grammar?  That would probably be a better start
for your grammar.

> don't know how to adapt that to my scenario (HELLO token begins
> indentation, BYE token ends it).

So it sounds like

   (deconst factor-smie-grammar
     (smie-prec2->grammar
      (smie-bnf->prec2
       '((exp ("HELLO" exp "BYE"))))))

might be a good start.


        Stefan



reply via email to

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