[Oberon] FPGA - ORP.Compile * `marked viewer'
paulreed at paddedcell.com
Tue Apr 25 16:16:14 CEST 2017
> Not sure if useful, but is there a way to add * marked viewer as a...
parameter to ORP?
> ORP.Compile ~ is there
> ORP.Compile ^ (make sense?)
> ORP.Compile @ is there
> ORP.Compile * to add
I assume Prof. Wirth removed (or didn't add, he seems to write a lot of
his compilers freshly from scratch) the "marked viewer" version of the
compiler parameter handling because it removes the need for dependencies
on the imports Viewers and TextFrames (and the fiddly walk down the viewer
hierarchy to find the marked text).
As an exercise you could add the feature back in to ORP.Mod if you wish,
by referring to the code in the original edition, in Compiler.Mod.
(BTW you may notice that Edit.Locate has been changed too, to use the
FocusViewer instead of the MarkedViewer - though not for the same reason).
It might perhaps have been better, in hindsight, if the Oberon module had
exported a function Oberon.MarkedViewerText(). No doubt Andreas has
already added it... ;-)
More information about the Oberon