all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* help with smie
@ 2013-02-21 19:40 Yagnesh Raghava Yakkala
  2013-02-21 20:32 ` Josh
  2013-02-25  4:38 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Yagnesh Raghava Yakkala @ 2013-02-21 19:40 UTC (permalink / raw)
  To: emacs-devel


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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-25  4:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21 19:40 help with smie Yagnesh Raghava Yakkala
2013-02-21 20:32 ` 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

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.