From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Björn Lindqvist" <bjourne@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: SMIE examples or guides
Date: Tue, 28 Jun 2016 17:42:10 -0400 [thread overview]
Message-ID: <jwvinwt3sgs.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CALG+76d_S=2Chki_R2umvcATjM62n9S+cZV1VFLPKTRrcH-AdQ@mail.gmail.com> ("Björn Lindqvist"'s message of "Tue, 28 Jun 2016 13:34:35 +0200")
> 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
next prev parent reply other threads:[~2016-06-28 21:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-19 2:57 SMIE examples or guides Björn Lindqvist
2016-06-20 3:21 ` Stefan Monnier
2016-06-26 12:23 ` Björn Lindqvist
2016-06-27 8:31 ` Stefan Monnier
2016-06-27 12:32 ` Björn Lindqvist
2016-06-27 22:02 ` Stefan Monnier
2016-06-28 11:34 ` Björn Lindqvist
2016-06-28 21:42 ` Stefan Monnier [this message]
2016-06-28 22:30 ` Björn Lindqvist
2016-06-29 7:37 ` Stefan Monnier
2016-06-29 16:48 ` Björn Lindqvist
2016-06-30 7:23 ` Stefan Monnier
2016-06-30 11:27 ` Björn Lindqvist
2016-06-30 18:49 ` Stefan Monnier
2016-07-01 0:49 ` Björn Lindqvist
2016-07-01 7:13 ` Stefan Monnier
2016-07-01 19:28 ` Björn Lindqvist
2016-07-01 23:09 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvinwt3sgs.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bjourne@gmail.com \
--cc=help-gnu-emacs@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).