Re: [BLACKBOX] Compile plain text files

From: [at]} <Frank>
Date: Sun, 8 May 2011 13:54:05 -0300

----boundary-LibPST-iamunique-946355252_-_-
Content-type: text/plain

You know what? It is Emacs! And I use it dayly. And not just that: I use
gcc. And gdb. Great tools. The only problem is that gcc doesn't support
the best language ever - Oberon / Component Pascal. And that the
developers of this language have a long tradition to tie it neatly to
special operating systems and strange user interfaces, so nobody uses it.

You are right with your concern about using another editor within the
debugging cycle. So I guess the best solution for my personal
preferences is:
  - Write new modules and longer pieces of text with emacs,
  - apply Alexander's tweak (see next posting) to compile everything
  - do the compile - debug cycle within the component builder.
This way I can
  - Use my editor
  - use the diff tool of version control systems
  - switch to cpdev easily.

Thanks for your post, it clarified the matter.
-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil
On 05/07/2011 10:17 PM, Douglas G. Danforth wrote:
> Frank,
> There may be an inconsistency in your request.
>
> Even if you were to write a front end module that opened text files
> and read them into a temporary file that the compiler could operate on
> then what would happen if there is a syntax error in your file?
>
> The compiler would open a window into the temporary file and one would
> normally change the text using the default editor into that window. It would
> then be necessary to save that file back as a text file.
>
> If there were no errors in any of your text files then having a front
> end convert
> for the compiler would probably work.
>
> But if your preferred editor is Emacs then I ban you from using this
> site (just kidding)!
>
> -Doug Danforth
>
>
> On 5/7/2011 4:41 PM, Frank Hrebabetzky wrote:
>> On 05/07/2011 07:22 PM, Douglas G. Danforth wrote:
>>> On 5/7/2011 7:31 AM, Frank Hrebabetzky wrote:
>>>> Is there a way to compile plain text files with any file name
>>>> extension?
>>> If you can open the file (File->Open->File of type: All Files(*.*)) and
>>> when the
>>> desired file is selected then choose "Text" you will have the file
>>> visible in compilable
>>> form (assuming that the file is indeed syntactically Component Pascal).
>>
>> I wasn't specific enough, excuse me.
>>
>> I want to work with pure ASCII texts, because this way I can use my
>> preferred editor and the difference tool of version control programs.
>> I would like to compile all modules of my program at once with
>> "DevCompiler.CompileThis ...", but this command accepts only a list of
>> basenames and requires files with extension "odc".
>>
> ---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy>
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-946355252_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFlvdSBrbm93IHdoYXQ/IEl0IGlzIEVtYWNzISBB
bmQgSSB1c2UgaXQgZGF5bHkuIEFuZCBub3QganVzdCB0aGF0OiBJIHVzZSBccGFyDQpnY2MuIEFu
ZCBnZGIuIEdyZWF0IHRvb2xzLiBUaGUgb25seSBwcm9ibGVtIGlzIHRoYXQgZ2NjIGRvZXNuJ3Qg
c3VwcG9ydCBccGFyDQp0aGUgYmVzdCBsYW5ndWFnZSBldmVyIC0gT2Jlcm9uIC8gQ29tcG9uZW50
IFBhc2NhbC4gQW5kIHRoYXQgdGhlIFxwYXINCmRldmVsb3BlcnMgb2YgdGhpcyBsYW5ndWFnZSBo
YXZlIGEgbG9uZyB0cmFkaXRpb24gdG8gdGllIGl0IG5lYXRseSB0byBccGFyDQpzcGVjaWFsIG9w
ZXJhdGluZyBzeXN0ZW1zIGFuZCBzdHJhbmdlIHVzZXIgaW50ZXJmYWNlcywgc28gbm9ib2R5IHVz
ZXMgaXQ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