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: access to parser stack in SMIE Date: Mon, 08 Oct 2012 22:26:11 -0400 Message-ID: References: <85pq4wgrho.fsf@member.fsf.org> <85lifjfn10.fsf@member.fsf.org> <85wqz1dg7k.fsf@member.fsf.org> <857gr1da6d.fsf@member.fsf.org> <85vcek1sgm.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349749577 30688 80.91.229.3 (9 Oct 2012 02:26:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2012 02:26:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 09 04:26:24 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TLPWY-00040K-NG for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2012 04:26:22 +0200 Original-Received: from localhost ([::1]:38466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLPWS-0007b4-DD for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2012 22:26:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLPWQ-0007ay-9p for emacs-devel@gnu.org; Mon, 08 Oct 2012 22:26:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLPWP-0006O9-FT for emacs-devel@gnu.org; Mon, 08 Oct 2012 22:26:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:35897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLPWP-0006O5-BG for emacs-devel@gnu.org; Mon, 08 Oct 2012 22:26:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLQG/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0khiWBdwW6CZBEA6MzgViDBYFD X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200894842" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Oct 2012 22:26:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 33D2D594FF; Mon, 8 Oct 2012 22:26:11 -0400 (EDT) In-Reply-To: <85vcek1sgm.fsf@member.fsf.org> (Stephen Leake's message of "Mon, 08 Oct 2012 18:58:49 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154251 Archived-At: > So you typically only have to go back one statement, not all the way to > the top. I can construct a worse case scenario that requires scanning to > the top, but it's pretty pathological code. Great. That was also my experience with other languages so far, but I'm glad it worked for you too. > I've kept the cache; it's simple, and it should speed things up quite a > bit. I'll try to measure how much when I'm all done. I'd be interested to see your results. > I'll still play with semantic; there are front-end tools like code > completion and function call template that rely on it. But it's less > urgent. Semantic support would be really neat, yes. [ Hopefully, at some point SMIE and Semantic will get closer, to the point where a given language mode doesn't need to give 2 different specifications of the language. ] Stefan