mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 13:22:26 +00:00
added DumpLog function to Oberon module; -- noch
Former-commit-id: 6433d592bb
This commit is contained in:
parent
e9f1a2710a
commit
b00409910c
1 changed files with 13 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ MODULE Oberon;
|
||||||
|
|
||||||
(* this version should not have dependency on graphics -- noch *)
|
(* this version should not have dependency on graphics -- noch *)
|
||||||
|
|
||||||
IMPORT Kernel, Texts, Args;
|
IMPORT Kernel, Texts, Args, Out := Console;
|
||||||
TYPE
|
TYPE
|
||||||
|
|
||||||
ParList* = POINTER TO ParRec;
|
ParList* = POINTER TO ParRec;
|
||||||
|
|
@ -53,6 +53,18 @@ MODULE Oberon;
|
||||||
|
|
||||||
END PopulateParams;
|
END PopulateParams;
|
||||||
|
|
||||||
|
PROCEDURE DumpLog*;
|
||||||
|
VAR R : Texts.Reader;
|
||||||
|
ch : CHAR;
|
||||||
|
BEGIN
|
||||||
|
Texts.OpenReader(R, Log, 0);
|
||||||
|
|
||||||
|
REPEAT
|
||||||
|
Texts.Read(R, ch);
|
||||||
|
Out.Char(ch);
|
||||||
|
UNTIL R.eot;
|
||||||
|
END DumpLog;
|
||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
NEW(Par);
|
NEW(Par);
|
||||||
NEW(Par.text);
|
NEW(Par.text);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue