* Lisp/Scheme parser
@ 2007-05-27 15:43 Jacques Carette
2007-05-27 16:06 ` [Caml-list] " Pierre-Evariste Dagand
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jacques Carette @ 2007-05-27 15:43 UTC (permalink / raw)
To: OCaml
I tried to find a full Lisp (or Scheme) parser in Ocaml, and did not
immediately find one. Is my Google-fu not up to the task?
Yes, I am aware that parsing s-expressions is trivial, but the full Lisp
(or Scheme) grammar is somewhat more complicated, and I do not feel like
reinventing the wheel.
Any technology that integrates well with Ocaml is fine, since in the end
in-memory ASTs is going to be what we're really interested in.
Jacques
PS: Other than CIL for C, are there other programming languages for
which I can just get an off-the-shelf (non-commercial) parser?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Lisp/Scheme parser
2007-05-27 15:43 Lisp/Scheme parser Jacques Carette
@ 2007-05-27 16:06 ` Pierre-Evariste Dagand
2007-05-27 16:06 ` skaller
2007-05-27 18:13 ` Eric Cooper
2 siblings, 0 replies; 7+ messages in thread
From: Pierre-Evariste Dagand @ 2007-05-27 16:06 UTC (permalink / raw)
To: caml-list
2007/5/27, Jacques Carette <carette@mcmaster.ca>:
> I tried to find a full Lisp (or Scheme) parser in Ocaml, and did not
> immediately find one. Is my Google-fu not up to the task?
There is an implementation of a minimal lisp called Minilisp here :
http://www.bretagne.ens-cachan.fr/DIT/People/Luc.Bouge/Teaching/MIT1/Lisp/MLlisp/Dynamic/
It may fulfill your needs.
--
Pierre-Evariste DAGAND
http://perso.eleves.bretagne.ens-cachan.fr/~dagand/
Empreinte GPG [pgp.mit.edu] :
F8CC 61DD 40B7 933F 17CA 061F 5591 AAE6 D3EC 7357
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Lisp/Scheme parser
2007-05-27 15:43 Lisp/Scheme parser Jacques Carette
2007-05-27 16:06 ` [Caml-list] " Pierre-Evariste Dagand
@ 2007-05-27 16:06 ` skaller
2007-05-27 17:03 ` Joel Reymont
2007-05-29 4:45 ` Eliot Handelman
2007-05-27 18:13 ` Eric Cooper
2 siblings, 2 replies; 7+ messages in thread
From: skaller @ 2007-05-27 16:06 UTC (permalink / raw)
To: Jacques Carette; +Cc: OCaml
On Sun, 2007-05-27 at 11:43 -0400, Jacques Carette wrote:
> I tried to find a full Lisp (or Scheme) parser in Ocaml, and did not
> immediately find one. Is my Google-fu not up to the task?
OCS Scheme.
http://will.iki.fi/software/ocs/
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Lisp/Scheme parser
2007-05-27 16:06 ` skaller
@ 2007-05-27 17:03 ` Joel Reymont
2007-05-27 17:26 ` Jacques Carette
2007-05-29 4:45 ` Eliot Handelman
1 sibling, 1 reply; 7+ messages in thread
From: Joel Reymont @ 2007-05-27 17:03 UTC (permalink / raw)
To: skaller; +Cc: Jacques Carette, OCaml
This is the first result of the Google search for "scheme ocaml":
http://home.arcor.de/chr_bauer/schoca.html
Thanks, Joel
--
http://topdog.cc/ - EL to C# compiler
http://wagerlabs.com/ - blog
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Lisp/Scheme parser
2007-05-27 17:03 ` Joel Reymont
@ 2007-05-27 17:26 ` Jacques Carette
0 siblings, 0 replies; 7+ messages in thread
From: Jacques Carette @ 2007-05-27 17:26 UTC (permalink / raw)
To: OCaml
Joel Reymont wrote:
> This is the first result of the Google search for "scheme ocaml":
Silly me, I kept putting "grammar" or "parsing" in my searches, with
sub-optimal results.
Thanks to all who have responded to this,
Jacques
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Lisp/Scheme parser
2007-05-27 15:43 Lisp/Scheme parser Jacques Carette
2007-05-27 16:06 ` [Caml-list] " Pierre-Evariste Dagand
2007-05-27 16:06 ` skaller
@ 2007-05-27 18:13 ` Eric Cooper
2 siblings, 0 replies; 7+ messages in thread
From: Eric Cooper @ 2007-05-27 18:13 UTC (permalink / raw)
To: OCaml
On Sun, May 27, 2007 at 11:43:22AM -0400, Jacques Carette wrote:
> PS: Other than CIL for C, are there other programming languages for
> which I can just get an off-the-shelf (non-commercial) parser?
I wrote an OCaml parser for Java a while ago:
http://www.cs.cmu.edu/~ecc/joust.tar.gz
It handled the full language at the time I wrote it, but it probably
needs to be updated now (for generics at least).
--
Eric Cooper e c c @ c m u . e d u
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Lisp/Scheme parser
2007-05-27 16:06 ` skaller
2007-05-27 17:03 ` Joel Reymont
@ 2007-05-29 4:45 ` Eliot Handelman
1 sibling, 0 replies; 7+ messages in thread
From: Eliot Handelman @ 2007-05-29 4:45 UTC (permalink / raw)
Cc: OCaml
skaller wrote:
> On Sun, 2007-05-27 at 11:43 -0400, Jacques Carette wrote:
>
>> I tried to find a full Lisp (or Scheme) parser in Ocaml, and did not
>> immediately find one. Is my Google-fu not up to the task?
>>
>
> OCS Scheme.
>
> http://will.iki.fi/software/ocs/
>
>
>
Are there examples anywhere of how to embed OCS in an ocaml program?
thanks,
-- eliot
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-05-29 4:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-27 15:43 Lisp/Scheme parser Jacques Carette
2007-05-27 16:06 ` [Caml-list] " Pierre-Evariste Dagand
2007-05-27 16:06 ` skaller
2007-05-27 17:03 ` Joel Reymont
2007-05-27 17:26 ` Jacques Carette
2007-05-29 4:45 ` Eliot Handelman
2007-05-27 18:13 ` Eric Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox