From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Stephen Leake <stephen_leake@member.fsf.org>
Cc: emacs-devel@gnu.org
Subject: Re: syntax-propertize-function vs indentation lexer
Date: Sat, 01 Jun 2013 10:31:02 -0400 [thread overview]
Message-ID: <jwvfvx1hppw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <85obbq76hv.fsf@member.fsf.org> (Stephen Leake's message of "Sat, 01 Jun 2013 01:19:24 -0400")
>> Although, using it for indentation makes speed a real concern:
>> in many cases one does "edit+reindent", so if you put a "full reparse"
>> between the two, it needs to be about as fast as instantaneous.
> That's how my current SMIE-based parser works, and it's "fast enough".
Very interesting.
> I'm working on replacing it with an LALR parser, because the resulting
> code is much cleaner.
Makes sense: if you're going to parse the whole buffer forward anyway,
the limitations of SMIE don't make much sense: they're there
specifically so you can parse backward on-the-fly instead of keeping
a full-parse around.
Stefan
prev parent reply other threads:[~2013-06-01 14:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 15:19 syntax-propertize-function vs indentation lexer Stephen Leake
2013-05-29 15:28 ` Dmitry Gutov
2013-05-29 17:52 ` Stefan Monnier
2013-05-30 9:15 ` Stephen Leake
2013-05-30 14:02 ` Stefan Monnier
2013-05-31 7:45 ` Stephen Leake
2013-05-31 13:23 ` Stefan Monnier
2013-06-01 5:19 ` Stephen Leake
2013-06-01 14:31 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfvx1hppw.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@member.fsf.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.