Does anyone know of a scanner/parser generator package for Modula-3?
Thanks
- ken
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
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:
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