Calling Compiler.Compile (repost) 
Author Message
 Calling Compiler.Compile (repost)

Sorry about the first post (yesterday) I'm too
stupid to work out my newsposter.

Does anyone know the correct way to call
        Compiler.CompileFile(filname,options,log,breakpc:LONGINT,VAR :BOOLEAN);
I can't find any documentation for this procedure,
it seems self explanatory except for the parameter "breakpc"

I've tried
        Compiler.CompleFile(filename,"sew",Oberon.Log,0,status);
and get an error "449 in use".

Also
        1. does anyone know any Mail FTP HTTP (for System3 Native PC)
           applications that run in the background as a "task".

        2. is there a task/threads type available to make
           adding tasks easier.

        3. is there an FAQ? I've looked in all the obvious (to me)
           places.

        4. will type binding ever be implemented for Native PC?

Maximum respect to all the people who developed Oberon and
thanks for any help,

Tom.
--
----
Tom Ward



Thu, 27 Jan 2000 03:00:00 GMT  
 Calling Compiler.Compile (repost)

Quote:
>Does anyone know the correct way to call
>Compiler.CompileFile(filname,options,log,breakpc:LONGINT,VAR :BOOLEAN);
>I can't find any documentation for this procedure,
>it seems self explanatory except for the parameter "breakpc"

Look at this Module: the only thing you got wrong was that you likely
haven't opened a
Texts.Reader and passed only the filename to Compiler.CompileFile.

MODULE CompilerTest;
IMPORT Compiler, Oberon, Out, Texts;

CONST filename = "CompilerTest.Mod";

PROCEDURE Do*;
VAR source: Texts.Text; reader: Texts.Reader;
errore: BOOLEAN;
BEGIN
(* first open the source file *)
NEW(source);
Texts.Open(source, filename);
(* then the reader -- a reader reads a single char at a time, while a
Texts.Scanner
scans a token *)
Texts.OpenReader(reader, source, 0);
(* My System3/Win has only Compiler.Module(...) instead of CompileFile,
but I assume they are quite the same *)
Compiler.Module(reader, "s", 0, Oberon.Log, errore);
IF errore THEN Out.String("[CompilerTest] error."); Out.Ln; END;
END Do;

Quote:
>2. is there a task/threads type available to make
>   adding tasks easier.

I've once fetched a module for this purpose from somewhere on the net
(written by Frank
Hrebabetzky), but I haven't tried it (yet). Attached below.

AsciiCoder.DecodeText

`7`800001<EN^AGHh53<^<eH^iRA^A70?00PB00000X4000:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:

H

K

I

U9GM^MFI^128PX38TEVHeMfIUAF3:<5MQAGMca282EgIc128j0B3:4DMdmVLP028P028P028j0RA

8

PX38?9FIbmVK]8C3:8DId9GJU9fLcUgLdEFKj0bCREVL_i68c0REU9gLYmVKP4S;ddP2456Mee68

P028P028P0R>PXDM^E68aTC>ddP2=XP:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:ZXR:

>
K

S1BHc1BHP8FHS]fIbmFM^A68d5fL[i28=X08P02EXEgLPT6MPLGJ\a68RE68S56K\E6IP4FMdmFK

QAGJS56K\U78Qi6IP8GI`E6MYAGJfE6Ki1RHi12MXE68_1GIb56MYifIPdP2P028cUgLdEFK^02E

XE68SaFJUi6MPdfKTE7KU1bLXmFM\A68X5VMU12MXE68Vm6K\mfMYifIP<7MbEgHdEWLUYC3:dP2

P028=m4AEaDAP<4KYEVKd]C3:dP2P0289e4D?95EP84EQ=gJc]C3:dP2P028DU5D5128P0eD41B?

PhR;^0b>P028P028P028P028P028_X28`9gKRaFI]ebL`EfHYIFJS12IQAGHPXb;=X08P028P028

?

P8EA3mTD412:2AEHc]fL^84EQ=gJ4EfLSUB3:028P028P028P028P028P028P028P028P0gLTY38
D

:

K

A

E

:

RAW;`=7IY02E8ETCP84EQ=gJciRDUefKfE6:RAG:PDTC4]C3:028P028P0b;Z0bH_E7KT1RHU1RL

UefKfE6IP4FMdmFKQAGJS56K\U78dmfKPLGJdQ689ifLd56K\12LQ9GH]E6MU9gLPXb;=X08P028


B1RHdY382AEHc]6AQAGHkdP2P0282EdA9iD3:028P028>EdEPPRHdUb>=X08P028PTVKYA78X86M

^0gLTUb>=X08P028P84EQ=gJciBB^=7MQa6KPPRHda282AEHc]6DbmfH\0R8DEfLd92;P43<`03;

P03;P03;P43<`Tb>=X08P0BA>A485QGISE7MU]C3:dP2P0285i4AP<4KYEVKdiB3:dP2P028gmVL

L

K

Qa68`5VLQeFIdEVLc1bKV1BB^=7MQa6KP4VLUYC3:dP2P028P0RCQeFIP028PX38bEVIU9GI^=FI

PTVKPdFIc=GHWEfLPPbLi=7MUe68\mfIYhB3:028P0284A78P028P0R>PLGHYAGJ^M68dUFKU1BJ

^1BKc12:Q=fHe9GHSUW>P43<_<38]=G:P8FIdMGIUi68cEgHSEfLcUVMU1bHQa6KceP2P028P028

K

H

8

;

M

dmFKQAGJS56K\U78RE68TEF;YifLd56K\E6I\0BHS=fK]1GH^UFIT1RHi1BHPdFIc=GHWE68YiF3

I

K

I

8

8

:

8

P028P028P028P0RKQeFIP028PX3819UD1U58>5FKUaDI^]B<PlTAP<4B19e>=X08P028P028P028

P028P028d9DIWUVK\02M5i6I\028P028XX28\5fLd1bHQa6KPlVIPLEHYA7;P<4JU=fJD5fL[1R:

K

W12MYeFIP028P028ZTB3:028P028P028P028P028P02MCAgK`a28P028P028P028P02:Z0BHR=gK

H

=a28P028XX28S56KSE7KQAGJ_i68dUFKU1BH^A68n12KYeFJd1R:YdP2P028P028P028P028P028

8

3

C

8

?E7M^<5MbUVKWQRHdiRKQeFIY\C3:028P0bCeAW;CAWLYifIX828bEFK_IGIT9B:k028PlDMdi2C

H

:

8

>
8

I

:

RAW;dETKTiC?RAW;d=5M_1G:PlTDPPRHdiRC356K\iC?RAW;>=DH\aFCYdP2P02E8ETCP8EI]mVM

L

8

BE4EE9UCPDTC4]C3:028P02M^0WL_=6:dUb>=X08P028SQFIS]6:dUb>=X08PDTC4]C3:DTC412E

>

H

J
8

K

I


8

K

jd38`\C3:0289I48>=DH\aFCQQ7?m038DQDA>1RHdiRC356K\eT>m0BC1Q5:<mTC7UTCDUB3:028

8

XhDH]E6;P86M^hFH]EF:kdP2P0RHdi2JQi6I\EV>m02EQ=gJ69GH]Ef>=X08P86M^<GHVE68PXC?

8

PlDMdibDd9GJ^M6:RAW;^5FKUUb>=X08PlDMdibDd9GJ^M6:R0BJ^=7MQa6KUAV8Y\38P0bCeAW;




Sat, 29 Jan 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Repost - GPF in locally compiled app

2. REPOST: CEPort: I Need help with compile.c bug

3. Help Using Topspeed C++ compiler and CW 2003 Repost

4. Repost: Which compiler is right? / shared libraries

5. Glasgow Haskell compiler, version 0.16, available [REPOST]

6. TERSE: repost from comp.compilers

7. Repost: Call DLL's from Clipper

8. Repost API Calls

9. Repost: VL'97 Call for Participation

10. Repost: VL'97 Call for Participation

11. VIUF Fall 1998 Call for Topics - repost

 

 
Powered by phpBB® Forum Software