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: trunk r114534: Get Ruby's SMIE code to pass the test suite. Date: Mon, 07 Oct 2013 00:05:32 -0400 Message-ID: References: <87eh7z1c8u.fsf@yandex.ru> <87d2nijcx8.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381118748 27614 80.91.229.3 (7 Oct 2013 04:05:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 04:05:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 06:05:51 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 1VT24s-0000dw-Qi for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 06:05:50 +0200 Original-Received: from localhost ([::1]:57278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT24s-0007KP-8q for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 00:05:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT24i-0007K8-Id for emacs-devel@gnu.org; Mon, 07 Oct 2013 00:05:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT24b-0002Ob-96 for emacs-devel@gnu.org; Mon, 07 Oct 2013 00:05:40 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT24a-0002OU-QK for emacs-devel@gnu.org; Mon, 07 Oct 2013 00:05:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFHO+K8t/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="34902600" Original-Received: from 206-248-175-45.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.175.45]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 07 Oct 2013 00:01:56 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 215EAAE4CB; Mon, 7 Oct 2013 00:05:32 -0400 (EDT) In-Reply-To: <87d2nijcx8.fsf@yandex.ru> (Dmitry Gutov's message of "Mon, 07 Oct 2013 00:40:35 +0300") 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:163936 Archived-At: > Could you take a look at the examples I added in 114537 and 114538? See my answer patch. You'll see that I only added support for - and +. Other infix operators are easy to add, but I'd rather someone go through the trouble of finding the precedence table (BTW, you could also use the trick used in sml-mode, where the infix operators are not specified in the BNF grammar but only in a precedence table). Stefan