all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A yacc/bison that outputs elisp?
@ 2005-03-28 14:09 Sun Yijiang
  2005-03-28 14:58 ` Stefan Monnier
  2005-03-28 15:45 ` Kai Großjohann
  0 siblings, 2 replies; 9+ messages in thread
From: Sun Yijiang @ 2005-03-28 14:09 UTC (permalink / raw)


Is that possible? Anyone had the same thoughts? I think it would be
very very useful for an editor to have such syntax-specific parsing
ability.

For lex/flex, Emacs has the ability to filter out comments and strings
as they do.

Sun Yijiang

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

* Re: A yacc/bison that outputs elisp?
  2005-03-28 14:09 A yacc/bison that outputs elisp? Sun Yijiang
@ 2005-03-28 14:58 ` Stefan Monnier
  2005-03-28 17:31   ` Stefan Monnier
  2005-03-28 15:45 ` Kai Großjohann
  1 sibling, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2005-03-28 14:58 UTC (permalink / raw)
  Cc: emacs-devel

> Is that possible? Anyone had the same thoughts? I think it would be
> very very useful for an editor to have such syntax-specific parsing
> ability.

There's a package out there that does just that (IIRC it uses bison and
post-processes the C output to turn it in to elisp).
Can't remember the name, tho,


        Stefan

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

* Re: A yacc/bison that outputs elisp?
  2005-03-28 14:09 A yacc/bison that outputs elisp? Sun Yijiang
  2005-03-28 14:58 ` Stefan Monnier
@ 2005-03-28 15:45 ` Kai Großjohann
  1 sibling, 0 replies; 9+ messages in thread
From: Kai Großjohann @ 2005-03-28 15:45 UTC (permalink / raw)


There is the Semantic Bovinator.  If I understand correctly, it's a
parser generator written in Emacs Lisp, generating Emacs Lisp code.

The SourceForge project is called CEDET, and it includes context aware
completion as an application of the parser generator.

Kai

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

* Re: A yacc/bison that outputs elisp?
  2005-03-28 14:58 ` Stefan Monnier
@ 2005-03-28 17:31   ` Stefan Monnier
  2005-03-29  1:10     ` Sun Yijiang
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2005-03-28 17:31 UTC (permalink / raw)
  Cc: emacs-devel

>> Is that possible? Anyone had the same thoughts? I think it would be
>> very very useful for an editor to have such syntax-specific parsing
>> ability.

> There's a package out there that does just that (IIRC it uses bison and
> post-processes the C output to turn it in to elisp).
> Can't remember the name, tho,

It's called "scanner.el" and written by John Wiegley (famous for several
other Emacs packages).

Look for it on gnu.emacs.sources,


        Stefan

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

* Re: A yacc/bison that outputs elisp?
  2005-03-28 17:31   ` Stefan Monnier
@ 2005-03-29  1:10     ` Sun Yijiang
  2005-03-29  1:25       ` Stefan Monnier
  2005-03-29  8:28       ` John Wiegley
  0 siblings, 2 replies; 9+ messages in thread
From: Sun Yijiang @ 2005-03-29  1:10 UTC (permalink / raw)
  Cc: emacs-devel

I found his homepage at http://www.newartisans.com/johnw, but there's
no scanner.el found. Also I searched mail archive of
gnu.emacs.sources, but still not found. Where can I download it,
please?


On Mon, 28 Mar 2005 12:31:32 -0500, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
> >> Is that possible? Anyone had the same thoughts? I think it would be
> >> very very useful for an editor to have such syntax-specific parsing
> >> ability.
> 
> > There's a package out there that does just that (IIRC it uses bison and
> > post-processes the C output to turn it in to elisp).
> > Can't remember the name, tho,
> 
> It's called "scanner.el" and written by John Wiegley (famous for several
> other Emacs packages).
> 
> Look for it on gnu.emacs.sources,
> 
> 
>        Stefan
>

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

* Re: A yacc/bison that outputs elisp?
  2005-03-29  1:10     ` Sun Yijiang
@ 2005-03-29  1:25       ` Stefan Monnier
  2005-03-29  8:28       ` John Wiegley
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2005-03-29  1:25 UTC (permalink / raw)
  Cc: emacs-devel

> I found his homepage at http://www.newartisans.com/johnw, but there's
> no scanner.el found. Also I searched mail archive of
> gnu.emacs.sources, but still not found. Where can I download it,
> please?

groups.google.com => group:gnu.emacs.sources scanner.el


        Stefan

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

* Re: A yacc/bison that outputs elisp?
  2005-03-29  1:10     ` Sun Yijiang
  2005-03-29  1:25       ` Stefan Monnier
@ 2005-03-29  8:28       ` John Wiegley
  2005-03-29 13:41         ` Stefan Monnier
  1 sibling, 1 reply; 9+ messages in thread
From: John Wiegley @ 2005-03-29  8:28 UTC (permalink / raw)


Sun Yijiang <sunyijiang@gmail.com> writes:

> I found his homepage at http://www.newartisans.com/johnw, but
> there's no scanner.el found. Also I searched mail archive of
> gnu.emacs.sources, but still not found. Where can I download it,
> please?

scanner.el only produces lexers, not parsers.  And it is somewhat
ancient.  It should still work, but no guarantees...

John

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

* Re: A yacc/bison that outputs elisp?
  2005-03-29  8:28       ` John Wiegley
@ 2005-03-29 13:41         ` Stefan Monnier
  2005-03-29 17:44           ` John Wiegley
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2005-03-29 13:41 UTC (permalink / raw)
  Cc: emacs-devel

> scanner.el only produces lexers, not parsers.  And it is somewhat
> ancient.  It should still work, but no guarantees...

BTW, have you actually used it?  For what?
How was the performance?


        Stefan

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

* Re: A yacc/bison that outputs elisp?
  2005-03-29 13:41         ` Stefan Monnier
@ 2005-03-29 17:44           ` John Wiegley
  0 siblings, 0 replies; 9+ messages in thread
From: John Wiegley @ 2005-03-29 17:44 UTC (permalink / raw)


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

> BTW, have you actually used it?  For what?  How was the performance?

I did use it once, but didn't measure the performance.  It relies
heavily on a tight loop that does lots of vector lookups.

John

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

end of thread, other threads:[~2005-03-29 17:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-28 14:09 A yacc/bison that outputs elisp? Sun Yijiang
2005-03-28 14:58 ` Stefan Monnier
2005-03-28 17:31   ` Stefan Monnier
2005-03-29  1:10     ` Sun Yijiang
2005-03-29  1:25       ` Stefan Monnier
2005-03-29  8:28       ` John Wiegley
2005-03-29 13:41         ` Stefan Monnier
2005-03-29 17:44           ` John Wiegley
2005-03-28 15:45 ` Kai Großjohann

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.