faqts : Computers : Programming : Languages : Tse : Language : Computer

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

Computer: Wordprocessor: TSE: Language: Computer: Compile: Overview

Oct 7th, 2003 06:23
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 11 September 2003 - 06:46 pm ------------------

Computer: Wordprocessor: TSE: Language: Computer: Compile: Run: 
Overview

---

Idea:

-TSE: one editor, to compile or run all your computer languages
      (using 1 same keyboard action)


(similar idea as for:

- Java: one computer language, run it on all platforms.

- .NET: one virtual machine code, run it with all computer languages

- XML: one data, use this with all computer languages)

---
---

The aim is to compile or run as much as possible, if not all,
programming languages via your TSE editor, and all by only pressing the
always same key combination

 <CTRL><F9>,

 or

 <ESC><Macro><Compile>.

---

Minimal thinking necessary when having to compile, always the same
manual action.

---

This ideas can be adapted to an arbitrary language, be it

ASP,
BASIC,
C#,
C++,
COBOL,
Eiffel,
FORTRAN,
HTML,
Java,
JavaScript,
JSP,
LotusScript,
PERL,
PHP
Python,
Ruby,
Scheme,
SQL,
TeX,
TSE SAL,
WSH,
XML,
...

---

To do it as automatic as possible, you often will have to run the
compilation using command line parameters.

---

What you do is you:

1. create a batch file for each language involved

   1. calling e.g. the executable for that language

     The content of this batch file is usual something like:

      <executable name for that language> <your program filename>

   2. so with the source code of your program as a parameter

2. To inform TSE about this setup and the location of this batch file,
   you change the compiler settings in TSE.

   'Extension' to: .<file extension of your language>

   'Description' to: <name of your language>

   'Command' to: <location filepath of your batch file>

   ---

   e.g. when given 'c:\temp\myfilename.s'

   then:

     &name& = the filename only of the file (e.g. 'myfilename')

     &ext& = the extension only of the file (e.g. .s)

     &fn& = the full filename (e.g. 'c:\temp\myfilename.s')

     &output& = the name of the output file after compilation
                containing the errors

---

File: macro: see also:

 ..\compiler.s

in your TSE directory

----------------------------------------------------------------------