all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Parsing
Date: Sun, 30 Nov 2014 21:04:35 +0100	[thread overview]
Message-ID: <87wq6c8nfw.fsf@arcor.de> (raw)
In-Reply-To: 87sih0trni.fsf@nothing.invalid

Bix writes:
> I like to convert a test file that pertain to some grammar into
> the relative AST, so I think that parsing as in CS  compiler design is the
> closer description, but I may be wrong. 
> Then I need some api to navigate the AST generated, or more simple do
> some walking on the AST generated.

The tool you're looking for is Semantic, not Senator. It contains a
simple LL parser called "Bovine" and a more advanced LALR parser which
is pretty much a port of Bison to Emacs Lisp, called "Wisent". If you
get the latest Emacs 24.4 you should find the documentation for them in
the accompanied info files (do 'C-h i'). If you want to get an
impression of the AST that is produced, load a simple C file, do 'M-x
semantic' and then 'M-x bovinate'. For further questions, the best place
to ask is the CEDET mailing list

http://sourceforge.net/p/cedet/mailman/

(also available on Gmane as gmane.emacs.cedet).

-David




  parent reply	other threads:[~2014-11-30 20:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-30  8:47 Parsing Bix
2014-11-30 15:01 ` Parsing Emanuel Berg
2014-11-30 19:28   ` Parsing Bix
2014-11-30 19:44     ` Parsing Emanuel Berg
2014-11-30 20:04     ` David Engster [this message]
     [not found]     ` <mailman.15018.1417377907.1147.help-gnu-emacs@gnu.org>
2014-11-30 20:22       ` Parsing Bix
  -- strict thread matches above, loose matches on Subject: below --
2006-12-14 11:27 parsing A Soare

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=87wq6c8nfw.fsf@arcor.de \
    --to=deng@randomsample.de \
    --cc=help-gnu-emacs@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.