Mailing List Archive

embedding perl in vi
Are there any vi aficcionados who would like to try there hands at
embedding perl into nvi? I've got a small folder of mail between
Keith, GNN, PMQS, and myself that you could check out if you're
interested. Remember, there is already a tcl extension for it,
so we're falling behind. :-)

Here are three semi-related projects that need doing if anyone
is up for any of it.

1) Getting a nice embedded perl into nvi. People
interested in this should see ftp://perl.com/perl/nvi.tar.gz
for the folder.

2) Getting a stand-alone -lperlregexp library.
This is actually harder, because you have to
through out the /e and the strange games you
have to play with the parser as a result.

3) WRITE A REAL perlembed PODPAGE SO THIS STUFF STOPS
BEING BLACK MAGIC!

--tom

Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com

"The purpose of most computer languages is to lengthen your resume by
a word and a comma." --Larry Wall
Re: embedding perl in vi [ In reply to ]
On Sun, 3 Dec 1995, Tom Christiansen wrote:

> Are there any vi aficcionados who would like to try there hands at
> embedding perl into nvi? I've got a small folder of mail between
> Keith, GNN, PMQS, and myself that you could check out if you're
> interested. Remember, there is already a tcl extension for it,
> so we're falling behind. :-)
>
> Here are three semi-related projects that need doing if anyone
> is up for any of it.
>
> 1) Getting a nice embedded perl into nvi. People
> interested in this should see ftp://perl.com/perl/nvi.tar.gz
> for the folder.
>
> 2) Getting a stand-alone -lperlregexp library.
> This is actually harder, because you have to
> through out the /e and the strange games you
> have to play with the parser as a result.
>
> 3) WRITE A REAL perlembed PODPAGE SO THIS STUFF STOPS
> BEING BLACK MAGIC!

Another project comes to mind: embed perl into TCL. Silly, sure, but it
should make a good _simple_ example of an embedded perl.

The 'e' flag in regexp shouldn't be that much of a concern if you change
the engine slightly: $[1-9`&'] would be assigned to via a char ** array or
a callback, and the 'e' mode would activate a function callback. Or
something like that. The changes needed should hopefully be minimal, but I
can't see how to do it without any changes -- at least not without
including the rest of perl.

>
> --tom
>
> Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com
>
> "The purpose of most computer languages is to lengthen your resume by
> a word and a comma." --Larry Wall
>

--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)
Re: embedding perl in vi [ In reply to ]
Tom Christiansen wrote:
>
> Here are three semi-related projects that need doing if anyone is up for any
> of it.
>
> 3) WRITE A REAL perlembed PODPAGE SO THIS STUFF STOPS BEING BLACK MAGIC!
>

Well, embed is not exactly working that well. There are a bunch of problems
with embed, and after I reported them, they ended up way down in priority on
the bug list. Some of the problems were so deep in the guts of perl, that I
quit tracing them. Now I embed perl without the embed flags (to buggy).

If I actually had the feeling that I would not have to reapply all the
patches after each new release of perl, and if there would be a wee bit
of feedback, I might give it another try though. I might even eventually
put some words in the embed man page, if no one with more background could
be found...

---
Gerd Knops ------------------------------------------ gerti@BITart.com
Re: embedding perl in vi [ In reply to ]
Gerd Knops writes:
>
> Tom Christiansen wrote:
> >
> > Here are three semi-related projects that need doing if anyone is up for any
> > of it.
> >
> > 3) WRITE A REAL perlembed PODPAGE SO THIS STUFF STOPS BEING BLACK MAGIC!
> >
>
> Well, embed is not exactly working that well. There are a bunch of problems
> with embed, and after I reported them, they ended up way down in priority on
> the bug list. Some of the problems were so deep in the guts of perl, that I
> quit tracing them. Now I embed perl without the embed flags (to buggy).
>

Note that OS/2 perl is compiled with -DEMBED (do not know why). Thus
it is not buggy enough to break not-embedded perl. ;-)

Ilya