the PAPAgei asks for HELP! - BNF conversion / pascal grammar for PRD

16 views
Skip to first unread message

Sven Schubert

unread,
Apr 1, 2005, 9:02:51 AM4/1/05
to perl6-i...@perl.org
Hi all,

I am still working on PAPAgei - the PAscal for PArrot
compiler which is my final year project at I.T.
Carlow.

My (tentative) approach is to use PRD for parsing and
taking Dan's article on building a compiler for parrot
as a guide, I wanted to build an ISO pascal compiler
starting with a very basic grammar and gradually
extending it until it meets the full ISO standard.

However, I've been struggling with the basic task of
writing a PRD grammar for quite a while and am about
to turn to YAPP instead, if I can't get PRD to work
for me soon, as my project deadline is soon, _very_
soon.

I've come across two Perl scripts -
<parrot>/languages/converter.pl and
<parrot>/languages/conversion/test.pl

I've tried to understand them by simply going through
the Perl source, but was rather unsuccessful doing so
and was hoping to get some hints from the list on how
to go on about turning a (Pascal-) BNF into a PRD
grammar which I could use for my compiler.

Any suggestions anybody? Please?

Cheers,
Sven.

Gesendet von Yahoo! Mail: http://mail.yahoo.de
Noch schneller mailen? Yahoo! Messenger: http://de.messenger.yahoo.com

Leopold Toetsch

unread,
Apr 1, 2005, 2:28:33 PM4/1/05
to sch...@bnhof.de, perl6-i...@perl.org
Sven Schubert <schub...@yahoo.com> wrote:
> Hi all,

> I am still working on PAPAgei - the PAscal for PArrot
> compiler which is my final year project at I.T.
> Carlow.

Hehe, good name.

> However, I've been struggling with the basic task of
> writing a PRD grammar for quite a while and am about
> to turn to YAPP instead, if I can't get PRD to work
> for me soon, as my project deadline is soon, _very_
> soon.

> I've come across two Perl scripts -
> <parrot>/languages/converter.pl and
> <parrot>/languages/conversion/test.pl

Dunno about these converters, but I'd start with that parser you know
best just to make progress. YAPP / perl is probably a good combination
to get it running RSN.

> Cheers,
> Sven.

leo

Reply all
Reply to author
Forward
0 new messages