26 March 2015, 10:33 | #1 |
Registered User
Join Date: Aug 2012
Location: RAM:
Posts: 83
|
Blitz2: Compile & run from command line?
Does anyone know if it's possible to compile a blitz2 application from a script file or similar?
|
26 March 2015, 21:19 | #2 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 471
|
Yes, i know it. The answer is: No, it is not possible. Try AmiBlitz3 instead. It is on the way to have a CLI-Compiler soon(?).
|
27 March 2015, 14:29 | #3 |
Registered User
Join Date: Aug 2012
Location: RAM:
Posts: 83
|
Actually, it looks like it is possible! At least with blitz2 from the "Ultimate Blitz Basic" CD, I'm not sure about earlier versions. The SuperTED editor has a REXX port:
Code:
SYS:REXXC/rx "address TED_REXX1; SHOWSCREEN" SYS:REXXC/rx "address TED_REXX1; ACTIVATE" SYS:REXXC/rx "address TED_REXX1; LOADNEW 'somecode.bb2'" SYS:REXXC/rx "address TED_REXX1; COMPILE 'somecode.bb2'" Thanks to idrougge for finding this There's more info in the Blitz2:REDhelp drawer. Last edited by attle; 27 March 2015 at 14:45. |
28 March 2015, 00:32 | #4 | |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 471
|
Quote:
|
|
28 March 2015, 15:56 | #5 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,338
|
In a way you are both right, since you're not running the compiler from the shell, but TED. But it's quite a philosophical difference.
|
22 May 2015, 15:28 | #6 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,338
|
I now have support for editing and compiling Blitz from TurboText up and running. Since TTX is now freeware, I have attached my entire installation.
Installation instructions: 1. You need the latest version of Blitz Basic 2, with SuperTED editor installed. 2. Make a TurboText drawer where you want it installed. 3. Unpack TTX_Blitz2.lha to that drawer. 4. Optionally, make a TurboText: assign to that drawer and add it to your path. 5. Start Blitz2. 5. Start TurboText from the Workbench or from the command line by entering "TTX source.asc". 6. If all works out, common Blitz keywords will be recognised as you type them, converted to proper case. If not, go to the Prefs menu and choose "Open definitions". Open the TTX_Blitz2.dfn file in TurboText:Support/. 7. Press F2 to fill out templates such as NEWTYPE or Function. 8. Finally, press F3 to send your source to SuperTED and compile it. |
24 May 2015, 02:10 | #7 | |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 471
|
Quote:
|
|
24 May 2015, 14:39 | #8 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,338
|
Is there any fault in this?
I've been trying to fix online help as well (check Support/TTX_Blitz2.dfn), but it stumbles on the fact that pasted lines aren't immediately tokenised by TED. |
25 May 2015, 16:34 | #9 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
|
25 May 2015, 23:30 | #10 | |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 471
|
Quote:
Note the emphasis. So, to make a conclusion, you are running the complete BlitzBasic2 suite in the background to enable "cli-compiling" and using another... editor for typing sourcecode? And the src integration needs (just) a few more steps to be the same as original? |
|
26 May 2015, 15:14 | #11 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,338
|
I don't understand, what are you trying to confirm?
|
13 June 2015, 02:15 | #12 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 471
|
I did not, actually, confirm anything. I've tried to understand and point out why you would recommend your setup to simply replace the editor, instead of enabling 'cli compile'.
You are not compiling from cli; you ran BlitzSSuite and on top of that you are using another editor for typing the sourcecode. TED (and SuperTED) have their flaws but they are integrated and working. Nothing wrong with your work, but the post implies 'cli compiling' is possible. It is not afaik (e.g. C-like edit/compile/make toolchain). |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run launcher from command line | PDG | support.FS-UAE | 8 | 26 February 2016 00:21 |
FS-UAE & command line parameters | Alpha One | support.FS-UAE | 1 | 29 October 2014 19:21 |
Anyone can compile this? Nybble swap command | adrdesign | request.Apps | 7 | 11 March 2014 02:25 |
Help needed with configuration & command line | Shaddow76 | support.WinUAE | 2 | 19 December 2012 23:10 |
command-line to mount and run hdf or zipped folder | fil | support.WinUAE | 1 | 05 September 2011 23:41 |
|
|