3 ms·
With oberonc you can compile the source code at http://www-oldurls.inf.ethz.ch/personal/wirth/CompilerConstruction/index.html http://www-oldurls.inf.ethz.ch/per
by lboasso 7y ago
With oberonc you can compile the source code at http://www-oldurls.inf.ethz.ch/personal/wirth/CompilerConstruction/index.html http://www-oldurls.inf.ethz.ch/personal/wirth/CompilerConstr... with minor changes to the I/O library calls. I can push the changes in a repo if you are interested.
Oberon-0 is too limited to easily bootstrap itself. I wrote oberonc first in Java and then I rewrote it in Oberon-07 for the final bootstrap step.
Oberon-0 is a toy subset of the full Oberon-07 language.
- AlexeyBrin 7y agoI can push the changes in a repo if you are interested. Thanks. That would be great for the people that want to follow the Compiler Construction book. (Thanks for posting the link for the 2017 version) Oberon-0 is a toy subset of the full Oberon-07 language. So I can write small Oberon-0 programs and try these using Oberon-07.
- lboasso 7y agoHere is the repo: https://github.com/lboasso/oberon0 https://github.com/lboasso/oberon0 Yes, you can write small Oberon-0 programs and compile them with an Oberon-07 compiler, but it is simpler to just use the Oberon-0 compiler from the repo above.
- AlexeyBrin 7y agoThanks.
- pjmlp 7y agoAs a tip when using languages like Oberon, use an autoformatter that uppercases the keywords, no need for shift or caps turn on/off all the time.