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

Parser generator for Modula-3

18 views
Skip to first unread message

Ken Rose

unread,
Dec 20, 2006, 8:47:28 PM12/20/06
to
Hi, all,

Does anyone know of a scanner/parser generator package for Modula-3?

Thanks

- ken

Bert Laverman

unread,
Dec 21, 2006, 2:53:56 AM12/21/06
to
Sort of...

I have a complete set of:
- Scanner generator
- LL(1) Parser generator
- LR(1) Parser generator (might be LALR actually)
However, they are in/for Modular Pascal.

I worked on them while a PhD student at Groningen University, but
never got round to finishing them. Thing is, they use each other,
so there is a bit of a chicken and egg problem there.

Getting a good Modular Pascal to Modula-3 converter would help. What
cost too much time then was getting both the code itself translated,
while at the same time converting the code generation.

Later, I simply didn't have the time.

These would make for a terrific student project though...

Bert Laverman

Message has been deleted

Daniel Benavides

unread,
Dec 21, 2006, 7:40:19 AM12/21/06
to
There is a compiler written in Modula-3 in this address:

http://www-itec.uni-klu.ac.at/~klaus/compbau03

The other possibility is looking the m3tk package and m3coco and
m3tasyntax (last one I couldnt compile it under cm3 because of lack
m3doc package, but it does on pm3).

Hope that helps


- Mostrar texto de la cita -

Ken Rose ha escrito:

Manuel Collado

unread,
Dec 22, 2006, 5:38:42 AM12/22/06
to
Ken Rose escribió:

> Hi, all,
>
> Does anyone know of a scanner/parser generator package for Modula-3?

Coco/r is a scanner/parser/compiler generator originally written for
Modula-2 and later ported to several other languages:

http://www.ssw.uni-linz.ac.at/Coco/

It should be easily ported to Modula-3 (mainly adapt the FILEIO module
for the target compiler).

Regards.
--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado

0 new messages