From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: access to parser stack in SMIE Date: Tue, 09 Oct 2012 07:23:07 -0400 Message-ID: <85liffhotg.fsf@member.fsf.org> 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> <85txu4iaqt.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349782101 20138 80.91.229.3 (9 Oct 2012 11:28:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2012 11:28:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 09 13:28:28 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 1TLXz7-00077F-4U for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2012 13:28:25 +0200 Original-Received: from localhost ([::1]:41581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLXyz-00068v-D6 for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2012 07:28:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLXyx-00068p-4Q for emacs-devel@gnu.org; Tue, 09 Oct 2012 07:28:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLXyr-0007nO-7I for emacs-devel@gnu.org; Tue, 09 Oct 2012 07:28:15 -0400 Original-Received: from qmta03.westchester.pa.mail.comcast.net ([76.96.62.32]:41346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLXyr-0007nK-3U for emacs-devel@gnu.org; Tue, 09 Oct 2012 07:28:09 -0400 Original-Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta03.westchester.pa.mail.comcast.net with comcast id 8ya11k00317dt5G53zUD74; Tue, 09 Oct 2012 11:28:13 +0000 Original-Received: from TAKVER ([69.140.67.196]) by omta13.westchester.pa.mail.comcast.net with comcast id 8zPy1k0054E4Fsd3ZzPyrP; Tue, 09 Oct 2012 11:23:58 +0000 In-Reply-To: <85txu4iaqt.fsf@member.fsf.org> (Stephen Leake's message of "Mon, 08 Oct 2012 23:29:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.96.62.32 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:154256 Archived-At: Stephen Leake writes: > Stefan Monnier writes: > >>> 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. ] > > You could write a translator from the bison BNF format to the current > SMIE BNF format, that should not be too hard. I take this back; the SMIE grammar needs refined tokens, which the BNF does not. Most of the work in building a SMIE indentation engine is figuring out what tokens to refine, and how to refine them. -- -- Stephe