From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn_Lindqvist?= Newsgroups: gmane.emacs.help Subject: Re: SMIE examples or guides Date: Tue, 28 Jun 2016 13:34:35 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467113797 19974 80.91.229.3 (28 Jun 2016 11:36:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 11:36:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 28 13:36:36 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1bHrJf-0000Ym-Pw for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 13:36:31 +0200 Original-Received: from localhost ([::1]:36048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHrJe-0002ET-RY for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2016 07:36:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHrHr-000134-B9 for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 07:34:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHrHp-0005hL-BE for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 07:34:38 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:36172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHrHp-0005h9-3s for help-gnu-emacs@gnu.org; Tue, 28 Jun 2016 07:34:37 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id f126so136011719wma.1 for ; Tue, 28 Jun 2016 04:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ovipp393g495ttP/y1HBluzlkiaUkZT64RYyhWDB2ZE=; b=h7BC1indpmYCDtHqJG+DcUu5plp7WTuew5EI4xohkM1xqFqwpKteJ/Ywxo03Ak/dun U+RDwp2R9aeHrSQt5OFMCc2ihd1FtKlf7fhNbbObKoj+kWXAMV/acxLQmXAdXtl51jZx owBi44c6jyqPRU0bu/iIsiHKMZr6AF/2vl6Mg6PRYOoBsi1UetrUClLv+qJcw0ezGDFm Sz6tRQkPRijGgaczEHR2dmLBxGhi0Ygq1/TRQjvQzmC2+7nn2n8HfN/8WBH2bkx1Uhcw WIBCIOPMmlOa/2fVHXOMUZUFnjeATfzLARAJl2YiZzPtX6GUIRwRsAkLEFRQNI6wq2qv AIZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ovipp393g495ttP/y1HBluzlkiaUkZT64RYyhWDB2ZE=; b=UpHXTF4dnqj2BjVFbS9ywuGN+8kN+tudjFvGR1y01f0cG1FzYfIh2gb5rgDKg4gXA/ flhLpOyGwskLn0PN4aWUzxbvw4iNKK3L2Ko0sQlI4+DrwoOq6WIQ5OkuKQrr/k64Az41 7seIbDT3KpW0Ou+HZeJ1lwRn7M52f6rj/aldWe4OE2j7i1isXxuOjCvMgc03R8UEG/zR mQXh8utnGt4VWIqDN9XgxdBgXPTpgYOQfftlj5RIBQW0e2yNPJxsP71484421ZWOSWnO IxZb2Bn2nvg3G9niBqCWogyr2Kd0zflabVUBmf4+WY/Fhmy3aVyt4rXKMpVgY+Zn4ziD UdNg== X-Gm-Message-State: ALyK8tL8gclSvPxrOpFQGUA47f/aWpVYLPkLdXvVgIWDDll/YD+w1mxwjXKisgwB+qjRHlc84WZJvHw3DRSN3A== X-Received: by 10.194.172.161 with SMTP id bd1mr2886584wjc.109.1467113676351; Tue, 28 Jun 2016 04:34:36 -0700 (PDT) Original-Received: by 10.194.45.202 with HTTP; Tue, 28 Jun 2016 04:34:35 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110636 Archived-At: Yes, I understand. But I'm completely at loss on how to do that or even getting started. I have seen what rules octave-mode has, but I don't know how to adapt that to my scenario (HELLO token begins indentation, BYE token ends it). 2016-06-28 0:02 GMT+02:00 Stefan Monnier : >> Just an empty list: >> (defconst factor-smie-grammar (list)) > > No good. You need to define your grammar, otherwise SMIE doesn't have > anything to work with. > > > Stefan --=20 mvh/best regards Bj=C3=B6rn Lindqvist