From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: SMIE
Date: Sat, 12 Jul 2014 09:38:13 -0500 [thread overview]
Message-ID: <85zjge1w2y.fsf@stephe-leake.org> (raw)
In-Reply-To: <CAPLdYOjRntb-ivOM1xpR0_JH=-U6-n18nEfZ8KTJM38tKPqmGg@mail.gmail.com> (Matt DeBoard's message of "Wed, 9 Jul 2014 23:53:04 -0400")
Matt DeBoard <matt.deboard@gmail.com> writes:
> In general I’m having a hard time connecting the dots between the BNF
> grammar table creation, the smie-rules (i.e. :before, :after, etc.),
> tokenization, indentation, and so forth, and how it all comes together
> to make this indentation machine work.
You might consider using wisi
(http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html, and in
Gnu ELPA) instead of SMIE.
The main difference is that wisi is a full LALR parser, while SMIE is an
incremental operator grammar parser. In practice, that means the wisi
grammar is _much_ closer to the language BNF, and thus possibly easier
to understand.
On the downside, wisi must parse the entire compilation unit (top level
grammar item), so it can be slow on large files. I'm working on
implementing a parser state cache to speed up re-parsing while editing.
Currently, wisi is only used in Ada mode and gpr mode (GNAT
project files), so there are fewer examples to work from.
I'd be interested in your feedback.
--
-- Stephe
next prev parent reply other threads:[~2014-07-12 14:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPLdYOhnp353s3LTM9EORWbzmiH2JXVjFNX1sp07tQYe2Q4MPA@mail.gmail.com>
2014-07-10 3:02 ` SMIE Stefan Monnier
2014-07-10 3:53 ` SMIE Matt DeBoard
2014-07-10 3:59 ` SMIE Matt DeBoard
2014-07-10 17:00 ` SMIE chad
2014-08-16 2:34 ` SMIE Matt DeBoard
2014-08-17 7:27 ` SMIE Bozhidar Batsov
2014-08-17 11:55 ` SMIE Stefan Monnier
2014-08-18 12:00 ` SMIE Bozhidar Batsov
2014-08-18 13:33 ` SMIE Tassilo Horn
2014-08-18 14:07 ` SMIE Stefan Monnier
2014-08-19 13:08 ` SMIE Richard Stallman
2014-08-19 14:12 ` SMIE Bastien
2014-08-20 2:27 ` SMIE Richard Stallman
2014-08-20 3:19 ` SMIE Matt DeBoard
2014-08-20 3:57 ` SMIE Ivan Andrus
2014-08-20 14:25 ` SMIE Stefan Monnier
2014-08-27 22:44 ` SMIE Matt DeBoard
2014-08-28 3:11 ` SMIE Stefan Monnier
2014-08-28 7:40 ` SMIE David Kastrup
2014-08-28 22:03 ` SMIE Dmitry
2014-08-17 8:55 ` SMIE Andreas Röhler
2014-07-10 13:32 ` SMIE Stefan Monnier
2014-07-12 14:38 ` Stephen Leake [this message]
2014-07-10 4:22 ` SMIE Matt DeBoard
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=85zjge1w2y.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).