all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: access to parser stack in SMIE
Date: Mon, 08 Oct 2012 23:29:30 -0400	[thread overview]
Message-ID: <85txu4iaqt.fsf@member.fsf.org> (raw)
In-Reply-To: <jwvzk3wqt9h.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 08 Oct 2012 22:26:11 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I'll still play with semantic; there are front-end tools like code
>> completion and function call template that rely on it. But it's less
>> urgent.
>
> Semantic support would be really neat, yes.
> [ Hopefully, at some point SMIE and Semantic will get closer, to the
>   point where a given language mode doesn't need to give 2 different
>   specifications of the language.  ]

You could write a translator from the bison BNF format to the current
SMIE BNF format, that should not be too hard. 

But I suspect that the subset of the language represented in the BNF
will be different for the two; the tools that semantic supports (_not_
indentation) require different things. Detailed lists of parameter names
(for function template/code completion), for one, which SMIE does not
need. I'll know more after I finish this current Ada mode project.

Neither set of tools wants a _complete_ BNF.

Automating a BNF filter to extract just the right subset for each tool
would be a really neat feat (and probably pass the Turing test :).

-- 
-- Stephe



  reply	other threads:[~2012-10-09  3:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-06  4:21 access to parser stack in SMIE Stephen Leake
2012-10-06 12:37 ` Stefan Monnier
2012-10-06 18:55   ` Stephen Leake
2012-10-07 19:04     ` Stefan Monnier
2012-10-07 23:18       ` Stephen Leake
2012-10-08  1:00         ` Stefan Monnier
2012-10-08  1:28           ` Stephen Leake
2012-10-08 22:58             ` Stephen Leake
2012-10-09  2:26               ` Stefan Monnier
2012-10-09  3:29                 ` Stephen Leake [this message]
2012-10-09  4:20                   ` Stefan Monnier
2012-10-09 11:23                   ` Stephen Leake

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=85txu4iaqt.fsf@member.fsf.org \
    --to=stephen_leake@member.fsf.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.