TSE: Language: Computer: Clojure

7 views
Skip to first unread message

knud van eeden

unread,
Jan 27, 2023, 9:34:26 PM1/27/23
to SemWare TSE Pro Text Editor
Hello,

FYI

How to compile Clojure programs from within TSE?

1. To learn Clojure

Clojure Tutorial

2. Install Clojure

3. Create a .bat file COMCLOJURE.BAT (e.g. save it in your TSE path)

powershell -command %4:; cd %5; clj -M %1.%2 >%6 2>&1
@ECHO.
powershell -NoExit -command %4:; cd %5; clj -M %1.%2

4. Add these TSE compiler options (e.g. run my chanblab.s and merge or add it manually)

Extension=.clj
Description=Clojure: Knud
Command=COMCLOJURE.BAT &name& &ext& &fn& &drive& &path& &output&
Output=Don't Clear Screen or Prompt After Shell
 -Error=^{.*}[ ]+at[ ]+({.*}:{[0-9]#}:{[0-9]#})[.]$\c
  Error: Options=
  Error: Extra line (default empty line)=
 -FileName=
  FileName: Options=
  FileName: Tag=2
 -Line=
  Line: Options=
  Line: Tag=3
 -Column=
  Column: Options=
  Column: Tag=4
 -Message=^{.*}$
  Message: Options=
  Message: Tag=0
User Macro=
------------------------------------------------------------------------------

5. For Clojure syntax highlight:

Computer: Editor: Text: TSE: Syntax: Highlight: Language: Computer: Clojure: File: Source: clojure.txt

6. Create a file helloworld.clj and compile it from TSE

( ns clojure.examples.hello
  ( :gen-class ) )
( defn hello-world[]
 ( println "Hello World" ) )
( hello-world )

7. That will show

Hello World

8. Tested successfully in
   Microsoft Windows Professional 10
   TSE version 4.42    

with friendly greetings
Knud van Eeden






knud van eeden

unread,
Jan 28, 2023, 9:44:56 AM1/28/23
to SemWare TSE Pro Text Editor
Hello,

FYI

How to compile Java programs from within TSE?

1. Information about Java


2. To learn Java

3. To install Java


4. Create a .bat file COMJAVA.BAT (e.g. save it in your TSE path)

%4:
cd "%5"
del %1.class
javac %1.%2 >%6 2>&1
@ECHO.
java %1
@ECHO.
@PAUSE
@ECHO.

5. Add these TSE compiler options (e.g. run my chanblab.s and merge (or add it manually))

--- cut here: begin --------------------------------------------------
Extension=.java
Description=Java: Knud
Command=COMJAVA.BAT &name& &ext& &fn& &drive& &path& &output&
Output=Don't Clear Screen or Prompt After Shell
 -Error=^{{.*}:{[0-9]#}:{.*}$}\c
  Error: Options=i
  Error: Extra line (default empty line)=
 -FileName=
  FileName: Options=
  FileName: Tag=2
 -Line=
  Line: Options=
  Line: Tag=3
 -Column=
  Column: Options=
  Column: Tag=
 -Message=
  Message: Options=
  Message: Tag=1
User Macro=
------------------------------------------------------------------------------

6. For Java syntax highlight:

-Use default java.syn in TSE

-Computer: Editor: Text: TSE: Syntax: Highlight: Language: Computer: Java: File: Source: java.txt

7. Create a file HelloWorld.java (case sensitive) in TSE and compile it from TSE (e.g. <CTRL><F9>)

public class HelloWorld {
 public static void main( String[] args ) {
  System.out.println( "Hello World" );
 }
}

8. That will show

Hello World

9. Tested successfully in
   Microsoft Windows Professional 10
   TSE version 4.42

See also:

Contents of TSE's compile.hlp file


Guy Rouillier

unread,
Jan 28, 2023, 11:32:45 PM1/28/23
to SemWare TSE Pro Text Editor
Java can be compiled using the built-in ctrl-F9.

--
Guy Rouillier
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/1920266372.813511.1674917086040%40mail.yahoo.com.

knud van eeden

unread,
Jan 29, 2023, 5:16:32 AM1/29/23
to sem...@googlegroups.com, Guy Rouillier
It is not that it can not be compiled of course.

It is the way it is compiled and the feedback.

Compile.s is designed to deliver much more.


Sent from Yahoo Mail on Samsung Galaxy S22 Ultra 512 gigabytes

Reply all
Reply to author
Forward
0 new messages