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: help with smie Date: Sun, 24 Feb 2013 23:38:17 -0500 Message-ID: References: <874nh5bglw.fsf@yagnesh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361767107 14164 80.91.229.3 (25 Feb 2013 04:38:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 04:38:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Yagnesh Raghava Yakkala Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 05:38:50 2013 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 1U9ppt-0001Qm-0i for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2013 05:38:45 +0100 Original-Received: from localhost ([::1]:59005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9ppY-0005Bq-8P for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2013 23:38:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9ppT-0005BM-Rz for emacs-devel@gnu.org; Sun, 24 Feb 2013 23:38:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9ppS-0002EA-KI for emacs-devel@gnu.org; Sun, 24 Feb 2013 23:38:19 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9ppS-0002E6-FC for emacs-devel@gnu.org; Sun, 24 Feb 2013 23:38:18 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KLv/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFHO+KLv/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2296559" Original-Received: from 206-248-162-239.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.162.239]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Feb 2013 23:38:16 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 57131AE2C6; Sun, 24 Feb 2013 23:38:17 -0500 (EST) In-Reply-To: <874nh5bglw.fsf@yagnesh.org> (Yagnesh Raghava Yakkala's message of "Fri, 22 Feb 2013 04:40:27 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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:157306 Archived-At: > I wrote smie rules in the mode, tried to see how it works. No surprise they > didn't work. "didn't work" is not very informative. > - is there any way I can check the correctness of the rules? Try'em out? > - can I look at the parsed tokens by SMIE to find out how SMIE sees the text > in the buffer. Try to Edebug (i.e. hit C-u C-M-x when inside a function's code, so as to cause stepping through it next time it's run), or use M-x trace-function. > and also I would be glad if any of you can review my code (second link in the > footnote), let me know the blunders I made in writing it. I took a very brief&superficial look at the code and it looks sane, other than trivial details like "grammer" instead of "grammar" or the "\\.namelist" regexp which should probably be "\\.namelist\\'" instead. Stefan "SMIE author"