I have started an implementation of m4 in PIR. See
http://www.gnu.org/software/m4/m4.html.
Initially I wanted to tackle Ruby or QCL,
http://tph.tuwien.ac.at/~oemer/qcl.html. But I found those too intimidating.
The goal is to make a lot of tests work, and eventually getting a drop
in replacement for GNU m4.
The plan is to implement everything in PIR, thus building on existing PMCs.
The curious can take look at the present status in:
http://www.schmalhofer.info/schmalhofer/bernhard/projects/m4/.
Is there already a testing framework in PIR or PASM? For now I've just
tweaked the Makefile from bf.
CU, Bernhard
--
*************************************************
Bernhard Schmalhofer
Senior Developer
Biomax Informatics AG
Lochhamer Str. 11
82152 Martinsried, Germany
Tel: +49 89 89 55 74 - 839
Fax: +49 89 89 55 74 - 25
PGP: https://ssl.biomax.de/pgp/
Email: mailto:Bernhard.S...@biomax.de
Web: http://www.biomax.de
*************************************************
The implications are staggering... Sure, plenty of
compilers can bootstrap themselves, but how many can
generate their own configure scripts via autoconf? With
p4rrot, we may live to see this dream.
/s
> Is there already a testing framework in PIR or PASM? For now I've just
> tweaked the Makefile from bf.
This looks excellent.
First, may I be the first to say that I'm happy that BF is the
inspiration for so many Parrot projects ;-)
We've used the Perl testing framework (Test::Harness, eg: 1..1\nok 1)
in the main parrot test suite. It's working well for Perl and a Parrot
version of it might be nice idea...
Leon
--
Leon Brocard.............................http://www.astray.com/
scribot.................................http://www.scribot.com/
... I'm not smart enough to lie
> We've used the Perl testing framework (Test::Harness, eg: 1..1\nok 1)
> in the main parrot test suite. It's working well for Perl and a Parrot
> version of it might be nice idea...
Anything that emits the Test::Harness protocol is fine. Anything that
understands the Test::Harness protocol is fine. Just support the
protocol and everyone's happy.
(I think Parrot is capable of interpreting the protocol right now.)
-- c
That is amazing!
>
> The goal is to make a lot of tests work, and eventually getting a
> drop
> in replacement for GNU m4.
> The plan is to implement everything in PIR, thus building on existing
> PMCs.
I have looked breifly into extracting high level information from m4,
I wonder if that would be possible using your implementation or if one
could use the existing m4 to generate code for your backend?
mike
=====
James Michael DuPont
http://introspector.sourceforge.net/
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com