On 12/10/2008 11:40:43 PM, Peter Rejto wrote:
>
>Gentlemen:
>
>However, I did check out the above
>rosetta URL.
>I was surprised to learn that there were
>16 examples of the Vedit programing
>language. I would like to use the Pascal
>Triangle example of the rosetta URL.
>
>I have a hunch that the program fragment
>there could be converted to a Pascal.VDM
>macro. However, I do not know how to do
>it. So, if somebody could do it for me,
>I would appreciate it.
There is another thread about Rosetta Code in VEDIT Macro Library section of WebBoard.
Anyway, you do not need to convert the code in any way.
There are two different implementations of Pascal Triangle for Vedit. You can use either one, they are both fully working macros.
Just copy-paste the code into Vedit.
Then either save it as *.vdm file and run it,
or just copy the code in T-Reg 100 and then select
"Misc" -> "Execute macro".
(This is the method I often use to test small macros, no need to save each macro in a separate file.)
--
Pauli
|
|