Next: MOOL program samples
Up: Writing a MOOL compiler
Previous: Translating a MOOL program
The MOOL language as described above suffers
from some strong limitations and omissions, I know.
This is essentially because we have a limited amount
of time to write this MOOL compiler.
Here are some possible features that would improve
the comfort of the MOOL programmer.
- MOOL should have the same primitive types as in JAVA,
in particular arrays and strings.
- Allowing the null object.
- Allowing recursive definition of classes (necessary to emulate
recursive structures like trees or lists).
- MOOL methods should be able to return either a primitive type
or an object.
- A MOOL class may have private methods.
- A MOOL class may have static methods.
- The target program should perform object garbage collection.
- The target program should recycle temporaries.
- ... And change the name MOOL to something else.
Next: MOOL program samples
Up: Writing a MOOL compiler
Previous: Translating a MOOL program
Marc Moreno Maza
2004-12-01