Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hi, it's me / yet another student trying to write a compiler targetting Parrot ;-)

7 views
Skip to first unread message

Sven Schubert

unread,
Jan 7, 2005, 11:11:18 AM1/7/05
to perl6-i...@perl.org
Hi all,

I've been reading the internals list for a while more
or less regularly and as this is me first post, it is
about time, that I introduce myself:

My name is Sven Schubert, I am studying information
systems and business in Germany and currently I'm on
an exchange program (ERASMUS for fellow euro-zone
readers) studying a year abroad in Ireland (I.T.
Carlow).

Now, being here only for the (final) year, I'm not
only to improve my English big time, but I'll have to
get into compilers in general and Parrot in
particular, as my final year project is baptised "A
Pascal Compiler for Parrot".

Et voila. I bought "Perl 6 and Parrot Essentials" and
installed Parrot 0.1.1 on my 2.6.5 linux here at
college. Well, what I read sounded good and especially
the following gave me some hope that I might actually
get around re-inventing the wheel:
(on page 102 P6&PE)


"Parrot provides a general-purpose parser built on top
of Perl 6's grammar engine...provides some utility
code to transform a yacc grammar into a Perl 6 grammar
, so languages that already use yacc can be moved over
the Parrot's parser with a minimum amount of fuss."

Has this 'general-purpose parser' been implemented
yet? Is there _any_ documentation on that? I've
skimmed through some of the languages that come with
parrot, but I couldn't really figure out, if any of
them is using Perl 6 grammars already. And where can I
find this utilities that convert yacc grammars into
P6-grammars?

Any suggestions would be highly welcome.
I am kinda aware, that I might just as well build a
compiler from scratch that simply produces PASM or
rather PIR, but the book seems to promise an easier
way, especially, as there certainly are a number of
already yacc'ed standard-Pascal grammars... Did I get
something wrong here?

Thanks a million,
cheers,
Sven.




___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

Leopold Toetsch

unread,
Jan 9, 2005, 8:23:27 AM1/9/05
to sch...@bnhof.de, perl6-i...@perl.org
Sven Schubert <schub...@yahoo.com> wrote:

> Et voila. I bought "Perl 6 and Parrot Essentials" and
> installed Parrot 0.1.1

You might consider to update to the CVS version. A lot of things are
improved or changed already.

> "Parrot provides a general-purpose parser built on top
> of Perl 6's grammar engine...provides some utility
> code to transform a yacc grammar into a Perl 6 grammar
> , so languages that already use yacc can be moved over
> the Parrot's parser with a minimum amount of fuss."

Yeah. The book is slightly ahead in future with some statements (as well
as with the mentioned asynchronous IO :) Anyway, in CVS we have PGE the
Parrot Grammar Engine. It implements parts of Perl6 rules and Perl5
regexen. You might also have a look at Subject: "Parrot Syntax Engine"
posted here recently. Both are work in progress.

> cheers,
> Sven.

leo

0 new messages