Re: guile-parser-combinators as new dependency to guix import quicklisp

2018-12-19 Thread Ricardo Wurmus


swedebugia  writes:

> On 2018-12-19 16:02, Ricardo Wurmus wrote:
>>
>> swedebugia  writes:
>>
>>> This morning I began to write a quicklisp importer using Daves
>>> guile-parser-combinators [1] to create a parser for the
>>> space-separated-csv files.
>>>
>>> guile-parser-combinators [2] is really nice, thanks Dave!, but not yet
>>> in guix.
>>
>> I would like to note that (ice-9 peg) is part of Guile and could be used
>> as an alternative to build a simple parser.  It has a different feel
>> than guile-parser-combinators, of course, but I thought I’d mention it
>> anyway.
>>
>> --
>> Ricardo
>>
>
> Thanks for sharing your thoughts on this.
>
> I try to hack together a PEG-parser then given that this code is in 2.2.
>
> Are there any PEG-parser examples I can look at in/outside Guix?

Julien (roptat on IRC) has just written an opam importer using (ice-9
peg).

--
Ricardo




Re: guile-parser-combinators as new dependency to guix import quicklisp

2018-12-19 Thread swedebugia

On 2018-12-19 16:02, Ricardo Wurmus wrote:


swedebugia  writes:


This morning I began to write a quicklisp importer using Daves
guile-parser-combinators [1] to create a parser for the
space-separated-csv files.

guile-parser-combinators [2] is really nice, thanks Dave!, but not yet
in guix.


I would like to note that (ice-9 peg) is part of Guile and could be used
as an alternative to build a simple parser.  It has a different feel
than guile-parser-combinators, of course, but I thought I’d mention it
anyway.

--
Ricardo



Thanks for sharing your thoughts on this.

I try to hack together a PEG-parser then given that this code is in 2.2.

Are there any PEG-parser examples I can look at in/outside Guix?

--
Cheers Swedebugia



Re: guile-parser-combinators as new dependency to guix import quicklisp

2018-12-19 Thread Ricardo Wurmus


swedebugia  writes:

> This morning I began to write a quicklisp importer using Daves
> guile-parser-combinators [1] to create a parser for the
> space-separated-csv files.
>
> guile-parser-combinators [2] is really nice, thanks Dave!, but not yet
> in guix.

I would like to note that (ice-9 peg) is part of Guile and could be used
as an alternative to build a simple parser.  It has a different feel
than guile-parser-combinators, of course, but I thought I’d mention it
anyway.

--
Ricardo




Re: guile-parser-combinators as new dependency to guix import quicklisp

2018-12-19 Thread Ludovic Courtès
Hello,

swedebugia  skribis:

> This morning I began to write a quicklisp importer using Daves
> guile-parser-combinators [1] to create a parser for the
> space-separated-csv files.

In general we have to think twice before adding new dependencies to
Guix.  To parse CSV files, I think you can probably do using the string
utilities already available in Guile; that would avoid adding a new
dependency.

WDYT?

(That said I agree that Dave’s parser combinators are nice, perhaps time
to add a package for them?  :-))

Thanks,
Ludo’.