From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: SMIE documentation Date: Mon, 29 Nov 2010 16:34:25 -0500 Message-ID: References: <87ipzgow0d.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291066489 22494 80.91.229.12 (29 Nov 2010 21:34:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2010 21:34:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 29 22:34:45 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNBMx-0007eB-5q for ged-emacs-devel@m.gmane.org; Mon, 29 Nov 2010 22:34:43 +0100 Original-Received: from localhost ([127.0.0.1]:33268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNBMw-0001Y9-MQ for ged-emacs-devel@m.gmane.org; Mon, 29 Nov 2010 16:34:42 -0500 Original-Received: from [140.186.70.92] (port=37513 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNBMs-0001Y4-3H for emacs-devel@gnu.org; Mon, 29 Nov 2010 16:34:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNBMq-0006n9-IB for emacs-devel@gnu.org; Mon, 29 Nov 2010 16:34:38 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNBMp-0006mK-Gs for emacs-devel@gnu.org; Mon, 29 Nov 2010 16:34:36 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oATLYQ3F019076; Mon, 29 Nov 2010 16:34:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 7A0A3A85E0; Mon, 29 Nov 2010 16:34:25 -0500 (EST) In-Reply-To: <87ipzgow0d.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 29 Nov 2010 12:54:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3694=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133244 Archived-At: >> +programming languages's syntax is designed to be parsed forward, but for > This should be "languages'", or "the syntax of programming languages". >> +extra effort; but it also means that most programming languages cannot >> +be parsed correctly, at least not without resorting to some >> +special tricks. > You should xref to "SMIE Tricks", if that is what you are referring to. > In general, it is good to add xrefs to the introduction, even if there > are links to the same nodes in the menu below that introduction, because > that makes it clearer to the reader exactly where to find the more > detailed treatment of each statement in the introduction. Indeed. Thanks all for the great feedback. > Also, it would be nice to have a better description of what kinds of > languages it's practical to use SMIE for. I truly do not know. It grew out of my sml-mode indentation algorithm, and I've used it so far to indent: Octave, SML, Coq, Prolog, Octave, and Modula-2. I think it's able to handle any language, thanks to the trick of moving some of the work to the lexer. But indeed, that might become impractical for some languages, tho I do not know enough to characterize this. Stefan