Re: GSOC PEG project

2010-07-18 Thread Andy Wingo
On Sat 17 Jul 2010 14:56, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo writes: > >> Take the good conventions from (ice-9 match), but there is no strict >> need for compatibility. > > This should read (ice-9 regex), I think. Ah indeed, my mistake. I think my head was swimming at this poin

Re: GSOC PEG project

2010-07-17 Thread Ludovic Courtès
Hi, Andy Wingo writes: > On Sun 11 Jul 2010 09:48, Michael Lucy writes: > >> On Thu, Jul 8, 2010 at 11:21 AM, Andy Wingo wrote: >> >>> Humm, another thing to think about: (ice-9 regex) returns "match >>> structures", which are really just vectors; have a look at them, and if >>> it makes sense

Re: GSOC PEG project

2010-07-17 Thread Andy Wingo
On Sun 11 Jul 2010 09:48, Michael Lucy writes: > On Thu, Jul 8, 2010 at 11:21 AM, Andy Wingo wrote: > >> Humm, another thing to think about: (ice-9 regex) returns "match >> structures", which are really just vectors; have a look at them, and if >> it makes sense to mimic that interface, re-expor

Re: GSOC PEG project

2010-07-17 Thread Andy Wingo
Heya, Sorry for the delayed reply again! I am trying to drain my email swamp, but there is a sucking sound there... On Fri 09 Jul 2010 09:58, Michael Lucy writes: >> You should change it to be implemented with syntax-case. Please let >> me know if you need help. > > Sorry I didn't do it this wa

Re: GSOC PEG project

2010-07-11 Thread Michael Lucy
On Thu, Jul 8, 2010 at 11:21 AM, Andy Wingo wrote: > Hi Michael, > > On Tue 06 Jul 2010 00:59, Michael Lucy writes: > >> (use-modules (ice-9 peg)) >> (peg-find "'b'+" "aabbcc") >> --> (2 4 "bb") > > Humm, another thing to think about: (ice-9 regex) returns "match > structures", which are really j

Re: GSOC PEG project

2010-07-10 Thread Michael Lucy
On Fri, Jul 9, 2010 at 2:58 AM, Michael Lucy wrote: > On Thu, Jul 8, 2010 at 5:29 AM, Andy Wingo wrote: >> A .texi file will be good, alongside the LALR(1) parser. > > Working on this now; should be done soon. > Pushed a first version of api-peg.texi up to origin/mlucy (and added it to guile.tex

Re: GSOC PEG project

2010-07-09 Thread Andy Wingo
Good day sir or lady, Agreed regarding all of your points, and particularly: On Tue 06 Jul 2010 02:41, No Itisnt writes: > A personal whinge: I would like to be able to specify grammars in > Scheme, using macros as the sugar instead of a different syntax. Yes! > Exciting stuff :) I can't wait

Re: GSOC PEG project

2010-07-09 Thread Andy Wingo
Hi Michael, On Tue 06 Jul 2010 00:59, Michael Lucy writes: > (use-modules (ice-9 peg)) > (peg-find "'b'+" "aabbcc") > --> (2 4 "bb") Humm, another thing to think about: (ice-9 regex) returns "match structures", which are really just vectors; have a look at them, and if it makes sense to mimic t

Re: GSOC PEG project

2010-07-09 Thread Michael Lucy
On Thu, Jul 8, 2010 at 5:29 AM, Andy Wingo wrote: > Hi Michael, > > I am travelling currently, so a bit of asynchronicity in the reply :) > > On Mon 05 Jul 2010 07:05, Michael Lucy writes: > >> I finally got things into a usable state, so I pushed out what I have >> to origin/mlucy. > > Great new

Re: GSOC PEG project

2010-07-08 Thread Andy Wingo
Hi Michael, I am travelling currently, so a bit of asynchronicity in the reply :) On Mon 05 Jul 2010 07:05, Michael Lucy writes: > I finally got things into a usable state, so I pushed out what I have > to origin/mlucy. Great news! > Files I've added so far: > guile/modules/ice-9/peg.scm (I a

Re: GSOC PEG project

2010-07-06 Thread Ludovic Courtès
Hello, No Itisnt writes: > On Mon, Jul 5, 2010 at 6:59 PM, Michael Lucy wrote: >> On Mon, Jul 5, 2010 at 5:40 PM, Ludovic Courtès wrote: >>> Michael Lucy writes: >>> Files I've added so far: guile/modules/ice-9/peg.scm (I assume this is the right place to put this?) >>> >>> No, it s

Re: GSOC PEG project

2010-07-05 Thread No Itisnt
On Mon, Jul 5, 2010 at 6:59 PM, Michael Lucy wrote: > On Mon, Jul 5, 2010 at 5:40 PM, Ludovic Courtès wrote: >> Hi! >> >> Thanks for the status report! >> >> Michael Lucy writes: >> >>> Files I've added so far: >>> guile/modules/ice-9/peg.scm (I assume this is the right place to put this?) >> >>

Re: GSOC PEG project

2010-07-05 Thread Michael Lucy
On Mon, Jul 5, 2010 at 5:40 PM, Ludovic Courtès wrote: > Hi! > > Thanks for the status report! > > Michael Lucy writes: > >> Files I've added so far: >> guile/modules/ice-9/peg.scm (I assume this is the right place to put this?) > > No, it should rather go under ‘module/language/peg.scm’, for the

Re: GSOC PEG project

2010-07-05 Thread Ludovic Courtès
Hi! Thanks for the status report! Michael Lucy writes: > Files I've added so far: > guile/modules/ice-9/peg.scm (I assume this is the right place to put this?) No, it should rather go under ‘module/language/peg.scm’, for the sake of consistency with other compiler front-ends. But see below.

GSOC PEG project

2010-07-04 Thread Michael Lucy
Hi, I finally got things into a usable state, so I pushed out what I have to origin/mlucy. Many apologies if I did something wrong; I've never used git with remote repositories before. Files I've added so far: guile/modules/ice-9/peg.scm (I assume this is the right place to put this?) guile/test