unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: SMIE
Date: Thu, 28 Aug 2014 09:40:22 +0200	[thread overview]
Message-ID: <87d2bl5aft.fsf@fencepost.gnu.org> (raw)
In-Reply-To: jwv38chuxcc.fsf-monnier+emacs@gnu.org

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> I know this is a long shot, but I am reading through ruby-mode.el's grammar
>> table, and it uses the token "iuwu-mod" but I have no idea what that means.
>
> The SMIE grammar does not use "keywords names" but "token names".
> Most tokens represent a keyword and use the same name as that keyword,
> but sometimes the same keyword is mapped to different tokens depending
> on context.  That's what the *-forward-token and *-backward-token
> functions are for.
>
> If you look at ruby-smie--forward-token, for example, you'll see that it
> can return "iuwu-mod" in the following case:
>
>            ((member tok '("unless" "if" "while" "until"))
>             (if (save-excursion (forward-word -1) (ruby-smie--bosp))
>                 tok "iuwu-mod"))
>
> So I guess you can now guess what "iuwu" stands for.

"conditional".  Would that have been so hard?

-- 
David Kastrup




  reply	other threads:[~2014-08-28  7:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPLdYOhnp353s3LTM9EORWbzmiH2JXVjFNX1sp07tQYe2Q4MPA@mail.gmail.com>
2014-07-10  3:02 ` SMIE Stefan Monnier
2014-07-10  3:53   ` SMIE Matt DeBoard
2014-07-10  3:59     ` SMIE Matt DeBoard
2014-07-10 17:00       ` SMIE chad
2014-08-16  2:34         ` SMIE Matt DeBoard
2014-08-17  7:27           ` SMIE Bozhidar Batsov
2014-08-17 11:55             ` SMIE Stefan Monnier
2014-08-18 12:00               ` SMIE Bozhidar Batsov
2014-08-18 13:33                 ` SMIE Tassilo Horn
2014-08-18 14:07                 ` SMIE Stefan Monnier
2014-08-19 13:08                 ` SMIE Richard Stallman
2014-08-19 14:12                   ` SMIE Bastien
2014-08-20  2:27                     ` SMIE Richard Stallman
2014-08-20  3:19                       ` SMIE Matt DeBoard
2014-08-20  3:57                         ` SMIE Ivan Andrus
2014-08-20 14:25                           ` SMIE Stefan Monnier
2014-08-27 22:44                             ` SMIE Matt DeBoard
2014-08-28  3:11                               ` SMIE Stefan Monnier
2014-08-28  7:40                                 ` David Kastrup [this message]
2014-08-28 22:03                                   ` SMIE Dmitry
2014-08-17  8:55         ` SMIE Andreas Röhler
2014-07-10 13:32     ` SMIE Stefan Monnier
2014-07-12 14:38     ` SMIE Stephen Leake
2014-07-10  4:22   ` SMIE Matt DeBoard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2bl5aft.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).