all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yagnesh Raghava Yakkala <hi@yagnesh.org>
To: emacs-devel@gnu.org
Subject: help with smie
Date: Fri, 22 Feb 2013 04:40:27 +0900	[thread overview]
Message-ID: <874nh5bglw.fsf@yagnesh.org> (raw)


Hello,

I like to use SMIE for indentation in one of my package called ncl-mode¹. Ncl
syntax is some what similar to Fortran. But it seems kind of big for me to
implement now.

So I decided to first try SMIE work for another small major mode called
namelist-mode². Namelist files are sort of configuration files Fortran
programs (you may already know that).

Anyway, namelist files are very simple, look like the following,

--8<---------------cut here---------------start------------->8---
 &group1
   key1 = value1, value2
   key2 = value1,
   ...
 $end
 &group2
   key1 = value1
   ...
 $end
--8<---------------cut here---------------end--------------->8---

I wrote smie rules in the mode, tried to see how it works. No surprise they
didn't work.

So, actual questions are,

- is there any way I can check the correctness of the rules.?
- can I look at the parsed tokens by SMIE to find out how SMIE sees the text
  in the buffer.

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.

Thanks,

PS: my understanding of language parser is very elementary. So please excuse
me if I sound stupid.

¹  https://github.com/yyr/ncl-mode
²  https://github.com/yyr/namelist-mode

--
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR




             reply	other threads:[~2013-02-21 19:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-21 19:40 Yagnesh Raghava Yakkala [this message]
2013-02-21 20:32 ` help with smie Josh
2013-02-21 20:41   ` Yagnesh Raghava Yakkala
2013-02-22 18:11   ` Stephen Leake
2013-02-25  4:40     ` Stefan Monnier
2013-02-25  4:38 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=874nh5bglw.fsf@yagnesh.org \
    --to=hi@yagnesh.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.