Re: New Egg: posix-regex

2022-03-17 Thread felix . winkelmann
> Chris Brannon  wrote:
> > I've been working on something along those lines myself, in fits and
> > starts.  I haven't gotten too far with it, but my basic idea is to make
> > a library of data structures and functions suitable for creating
> > ed-style interfaces where the basic metaphor is a buffer of lines.
>
> My basic idea is to write a POSIX ed(1) implementation which is
> extensible through a library interface which allows defining custom
> editor commands through provided macros and parser combinators. If you
> are interested, you can find the source code at:
>
>   https://github.com/nmeum/edward
>
> By now the editor is largely compatible with the POSIX ed(1)
> specification. As such, I also have a "buffer of lines" abstraction with
> POSIX ed undo support in `lib/buffer.scm`.
>

Brilliant!


felix




Re: New Egg: posix-regex

2022-03-17 Thread Sören Tempel
Chris Brannon  wrote:
> I've been working on something along those lines myself, in fits and
> starts.  I haven't gotten too far with it, but my basic idea is to make
> a library of data structures and functions suitable for creating
> ed-style interfaces where the basic metaphor is a buffer of lines.

My basic idea is to write a POSIX ed(1) implementation which is
extensible through a library interface which allows defining custom
editor commands through provided macros and parser combinators. If you
are interested, you can find the source code at:

https://github.com/nmeum/edward

By now the editor is largely compatible with the POSIX ed(1)
specification. As such, I also have a "buffer of lines" abstraction with
POSIX ed undo support in `lib/buffer.scm`.

Greetings,
Sören



Re: New Egg: posix-regex

2022-03-16 Thread Chris Brannon
Sören Tempel  writes:

> I initially extracted this code from an ed(1) implementation which I am
> writing atm in R7RS Scheme, which is why the posix-regex code is also
> still R7RS. I suppose it should indeed be possible to get rid of the
> dependency. I will keep this in mind as an enhancement for a future
> version of posix-regex :)

Interesting that you are working on an ed implementation in Scheme.

I've been working on something along those lines myself, in fits and
starts.  I haven't gotten too far with it, but my basic idea is to make
a library of data structures and functions suitable for creating
ed-style interfaces where the basic metaphor is a buffer of lines.

-- Chris



Re: New Egg: posix-regex

2022-03-16 Thread Sören Tempel
Mario Domenech Goulart  wrote:
> Hi Sören,

Hi Mario,

> Many thanks.  Your egg has been added to the coop.

Thanks a lot!

> Regarding documentation: all fine.  Some people create it in advance,
> some after the egg gets added.  Both are good as long as we eventually
> have some documentation. :-)

Great, I have added documentation to the wiki.

> Some nitpicking: is the dependency on r7rs really necessary, assuming
> your egg uses the FFI, which is CHICKEN-specific?

I initially extracted this code from an ed(1) implementation which I am
writing atm in R7RS Scheme, which is why the posix-regex code is also
still R7RS. I suppose it should indeed be possible to get rid of the
dependency. I will keep this in mind as an enhancement for a future
version of posix-regex :)

Greetings,
Sören



Re: New Egg: posix-regex

2022-03-16 Thread Mario Domenech Goulart
Hi Sören,

On Wed, 16 Mar 2022 16:55:29 +0100 Sören Tempel  
wrote:

> I have written a small library to wrap the regcomp(3), regexec(3), and
> regerror(3) POSIX functions. This allows using strict POSIX Basic
> Regular Expressions (BREs) and Extended Regular Expressions (EREs) from
> CHICKEN code. My understanding is that irregex only supports EREs with
> PCRE extensions (hence the need for this egg).
>
> I would like to see it added to the egg repository. The source code is
> hosted at https://github.com/nmeum/posix-regex. The release info file is
> available at:
>
>   
> https://raw.githubusercontent.com/nmeum/posix-regex/main/posix-regex.release-info
>
> I have performed tests with test-new-egg and only the documentation step
> fails. I assume this is due to the fact that I haven't created a Wiki
> page yet, I will do so after the egg is added to the repository (it
> wasn't clear to me whether Documentation should be created beforehand).
>
> Let me know if there is anything that needs to be adjusted.
>
> Please CC me, I am not subscribed to the list.

Many thanks.  Your egg has been added to the coop.

Regarding documentation: all fine.  Some people create it in advance,
some after the egg gets added.  Both are good as long as we eventually
have some documentation. :-)

Some nitpicking: is the dependency on r7rs really necessary, assuming
your egg uses the FFI, which is CHICKEN-specific?

All the best.
Mario
-- 
http://parenteses.org/mario



New Egg: posix-regex

2022-03-16 Thread Sören Tempel
Hello,

I have written a small library to wrap the regcomp(3), regexec(3), and
regerror(3) POSIX functions. This allows using strict POSIX Basic
Regular Expressions (BREs) and Extended Regular Expressions (EREs) from
CHICKEN code. My understanding is that irregex only supports EREs with
PCRE extensions (hence the need for this egg).

I would like to see it added to the egg repository. The source code is
hosted at https://github.com/nmeum/posix-regex. The release info file is
available at:


https://raw.githubusercontent.com/nmeum/posix-regex/main/posix-regex.release-info

I have performed tests with test-new-egg and only the documentation step
fails. I assume this is due to the fact that I haven't created a Wiki
page yet, I will do so after the egg is added to the repository (it
wasn't clear to me whether Documentation should be created beforehand).

Let me know if there is anything that needs to be adjusted.

Please CC me, I am not subscribed to the list.

Greetings,
Sören