[Oberon] Batch processing of Oberon commands
Michael Schierl
schierlm at gmx.de
Fri Jun 12 17:14:59 CEST 2020
Hello Andreas,
Am 11.06.2020 um 20:52 schrieb Andreas Pirklbauer:
> Extended Oberon now contains a simple batch processing facility,
> which allows users to activate multiple commands as follows:
>
> Oberon.Batch
> ORP.Compile A.Mod B.Mod C.Mod ~
> System.Watch ~
> MyModule.MyCommand A B C ~
> ~
>
> which executes the set of commands until the return code
> of any command is different from zero or the syntax is not
> that of a valid Oberon command.
Thanks for picking that up, it is very useful for automating the
creation of Oberon images.
> Any command can, but does not have to, set a return code by
> calling the procedure Oberon.Return(res)
Any particular reason why you did not keep the other changes in my pull
request, which added Return values to commands that are likely to be
batch-automated?
<https://github.com/andreaspirklbauer/Oberon-extended/compare/master...schierlm:retval>
or in case you rebased your repo again:
<https://github.com/andreaspirklbauer/Oberon-extended/compare/d920deaa9721941d99ff15587a6861b6fa433e54...schierlm:601f81673ef722ce4e0ab0959eb298e94851f97d>
I know changing the compiler is tricky, as it makes bootstrapping harder
(you cannot compile the compiler on a system that does not have the
Oberon.Return PROCEDURE yet). But the other commands (ORL.Link,
ORL.Load, System.Free, System.CopyFiles, System.RenameFiles,
System.DeleteFiles) should be straightforward.
Regards,
Michael
More information about the Oberon
mailing list