vishapoberon / compiler

vishap oberon compiler
http://oberon.vishap.am
GNU General Public License v3.0
186 stars 25 forks source link

Which modules are available by default in voc? #23

Closed snayaksnayak closed 8 years ago

snayaksnayak commented 8 years ago

Like Oberon module, Texts module, which all modules are available in voc by default? Does this module list covers all default/necessary modules supported by Oberon system?

norayr commented 8 years ago

very good question.

On my system, voc is prefixed in /opt/.

Therefore, I can know which libraries are available by doing

 ls /opt/voc/lib/voc/sym/

Then, you can know interface of each module by running

/opt/voc/bin/showdef /opt/voc/lib/voc/sym/Strings.sym
norayr commented 8 years ago

no, not all the modules from the Oberon system have been ported.

porting modules that do not necessarily depend on graphics is easier. porting modules that do depend of graphics, is harder.

but many other modules from other compiler libraries have been ported.

snayaksnayak commented 8 years ago

True. Modules depending on Graphics are harder. Even though I raised the question, I too don't know which modules are default/necessary that is supported by Oberon system. Any hint?

norayr commented 8 years ago

There is no standard actually. Even ETH Oberon had different versions, with different versions of OP2, and different sets of modules. And there is a Ulm Oberon System which has completely different and incompatible set of modules.

One effort to create a standard was designing Oakwood Guidelines. I believe, all those modules are available in voc. May be only Out.Mod is not fully implemented now. Module Console has almost identical interface, so I usually import it with aliasing IMPORT Out := Console;

Bringing different libraries from different projects to be available for voc users was one of the main goals of the project.

snayaksnayak commented 8 years ago

That's nice.