unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guile-parser-combinators as new dependency to guix import quicklisp
@ 2018-12-19  9:36 swedebugia
  2018-12-19 14:54 ` Ludovic Courtès
  2018-12-19 15:02 ` Ricardo Wurmus
  0 siblings, 2 replies; 5+ messages in thread
From: swedebugia @ 2018-12-19  9:36 UTC (permalink / raw)
  To: guix-devel

Hi

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.

Any thoughts on using this?

-- 
Cheers Swedebugia

[1] 
https://hyperdev.fr/blog/getting-started-with-guile-parser-combinators.html
[2] https://git.dthompson.us/guile-parser-combinators.git

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

* Re: guile-parser-combinators as new dependency to guix import quicklisp
  2018-12-19  9:36 guile-parser-combinators as new dependency to guix import quicklisp swedebugia
@ 2018-12-19 14:54 ` Ludovic Courtès
  2018-12-19 15:02 ` Ricardo Wurmus
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2018-12-19 14:54 UTC (permalink / raw)
  To: swedebugia; +Cc: guix-devel

Hello,

swedebugia <swedebugia@riseup.net> 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’.

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

* Re: guile-parser-combinators as new dependency to guix import quicklisp
  2018-12-19  9:36 guile-parser-combinators as new dependency to guix import quicklisp swedebugia
  2018-12-19 14:54 ` Ludovic Courtès
@ 2018-12-19 15:02 ` Ricardo Wurmus
  2018-12-19 17:57   ` swedebugia
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2018-12-19 15:02 UTC (permalink / raw)
  To: swedebugia; +Cc: guix-devel


swedebugia <swedebugia@riseup.net> 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

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

* Re: guile-parser-combinators as new dependency to guix import quicklisp
  2018-12-19 15:02 ` Ricardo Wurmus
@ 2018-12-19 17:57   ` swedebugia
  2018-12-19 19:20     ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: swedebugia @ 2018-12-19 17:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On 2018-12-19 16:02, Ricardo Wurmus wrote:
> 
> swedebugia <swedebugia@riseup.net> 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

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

* Re: guile-parser-combinators as new dependency to guix import quicklisp
  2018-12-19 17:57   ` swedebugia
@ 2018-12-19 19:20     ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2018-12-19 19:20 UTC (permalink / raw)
  To: swedebugia; +Cc: guix-devel


swedebugia <swedebugia@riseup.net> writes:

> On 2018-12-19 16:02, Ricardo Wurmus wrote:
>>
>> swedebugia <swedebugia@riseup.net> 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

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

end of thread, other threads:[~2018-12-19 19:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-19  9:36 guile-parser-combinators as new dependency to guix import quicklisp swedebugia
2018-12-19 14:54 ` Ludovic Courtès
2018-12-19 15:02 ` Ricardo Wurmus
2018-12-19 17:57   ` swedebugia
2018-12-19 19:20     ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).