PDA

View Full Version : Alternative IDE: thinSED



José Roca
27-08-2009, 18:54
I have made a quick adaptation of the SED Editor to work with thinBasic.

In the Menu-->Options-->Compiler just check the default compiler radio button and set the paths for the compilers. The other fields are ignored for now.

Don't use the projects because they haven't been adapted yet.

For now, you can edit and compile thinBasic script files, with syntax coloring and a ton of editing functions.

If you like it, more features can be adapted/added later.

The attachment contains the executable, thinSED100.EXE, and the PowerBASIC source code.

Just unzip it in the folder of your choice and set the compiler options to start working with it.

To compile, use Ctrl+F5, Ctrl+M or click the compile toolbar button.

martin
27-08-2009, 19:25
Good evening José,

This editor looks very nice, a bit simulair to ThinAir, but more features :eusadance:. But I can not run all my thinbasic scripts. Some UI scripts work and some not. Must test it further to find out why...

Kind regards,

Martin

Petr Schreiber
27-08-2009, 19:43
José,

thank you so much!
I think it is far better solution for ThinBASIC than PSPad :shock:

Martin, which script did not run for you?


Petr

martin
27-08-2009, 19:53
It seems the program doesn't like directory's and filenames with - in it, I renamed the files/directories and now it works!

ErosOlmi
27-08-2009, 20:01
José,

thanks a lot for this nice surprise :friends:
that comes to help to current thinAir suffering period.

Eros

José Roca
27-08-2009, 20:10
Just trying to help. I have made only the changes needed to allow to edit and compile scripts until you get thinAir fixed.

The problem pointed by martin must be because I have forgot to surround the path between quotes. I will fix it ASAP.

José Roca
27-08-2009, 20:29
I have added double quotes to the paths. Let's see if this solves martin's problem.

The attached file only contains thinSED100.bas and thinSED100.exe. Unzip it and overwrite the older files.

Edit: The changes have been incorporated to the attached file in the first post of this thread.

Michael Hartlef
27-08-2009, 20:36
Thanks Jose to support thinBAsic with your nice editor. :eusaclap:

ErosOlmi
27-08-2009, 20:53
José,

just to keep things organized, can you please update attached file in first post instead posting other attached versions?
I think it is easier for people navigating at a later time to find the correct version.

Thanks a lot
Eros

martin
27-08-2009, 20:56
I have added double quotes to the paths. Let's see if this solves martin's problem.


Yes, I can open and run all scripts now. Thanks José!

btw I like the treeview display of functions and subs very much

José Roca
27-08-2009, 21:09
José,

just to keep things organized, can you please update attached file in first post instead posting other attached versions?
I think it is easier for people navigating at a later time to find the correct version.

Thanks a lot
Eros



Done.

Michael Clease
28-08-2009, 13:59
I like the treeview display of functions and subs very much


Nice editor, I agree with martin this makes things easier to view.

thanks

lydia_sp
04-09-2009, 18:29
hi jose, all.

I like thinSED Editor. worked fine for me. test it. looks better for viwing code structure than thinair. Do you want to develop this editor beside thinair ? Would be good to have another IDE for thinbasic. how long did you need for creating such Editor ? My background for this ui`s is very low. but I will see to make it better :) bye, lydia

zlatkoAB
04-09-2009, 22:34
:D

patforkin
10-08-2011, 18:59
Hallo you useful members!
I am a newbie who has rejoined after a "time-out" to create a framework for a task set I wanted to get operational without programming. It now is operational and I am looking for a language simple enought to allow me and help me to automate it.
The task set deals with sentences and the sequence of words in those.
In my timout I came across the language AWK, which I though was useful with its concept of sentences as records and the words as fields within them.
SED was said to be a close relative in some respects of the AWK language.
Any way is it the SED that is used with cmd-line tasks?
Is its use with ThinBASIC, for the MS-Win platform?
I could not get a version to work with MS-Win.
SED was always the Linux product.
If the answers to my questions are positive, where can I get it?
And where can I get a useful description of it's use with ThinBASIC?
I look forward to what I hope for. Regards, patforkin

matthew
10-08-2011, 19:21
Hi Pat if you want to use SED & AWK in Windows you might want to try installing the Automated GNUWin32 tool from here (http://sourceforge.net/projects/getgnuwin32/files). I've never tried using it with thinBasic but I'm sure it could be used.

http://matthew-4gl.wikispaces.com/file/view/sed.for.windows.thinbasic.png/245262941/sed.for.windows.thinbasic.png

jack
11-08-2011, 02:00
Done.
I don't see the attachment :(

Petr Schreiber
11-08-2011, 08:24
I guess it got lost during the forum upgrade, I will contact José.


Petr

patforkin
11-08-2011, 09:40
Hello Mathew!
Thank you.
I have downloaded from the suggested link.
I will come back when I have tested it.
Regards, patforkin

jack
11-08-2011, 23:40
I guess it got lost during the forum upgrade, I will contact José.


Petr
Thank you Petr :)

Petr Schreiber
12-08-2011, 08:17
Hi Jack,

I got back from José, but I have bad news - he did not backed up the thinSED anywhere, so it got lost in the river of time I am afraid (unless something has copy on HDD)


Petr

largo_winch
12-08-2011, 09:54
hi jack, petr, but I have saved a copy from spring time, I hope this content helps :)

matthew
12-08-2011, 10:14
Thanks Largo, I was going to post with a different solution. If you download the files in post 7 here (http://www.thinbasic.com/community/showthread.php?10007-Alternative-IDE-thinSED&p=75764&viewfull=1#post75764) & place them in the folder for the SED Editor, downloaded from here (http://www.forum.it-berater.org/). You can get thinSED to work too.

patforkin
12-08-2011, 13:31
Hello Mathew!
Thanks for the SED zip file.
I have now installed and I am impressed.
Have you done much work with the editor and used it to write thinbasic scripts?
If you have programmed with it, have you used the functionality which it acquired from AWK.
By that, I mean it's ability, to work with sentences as records and with the words in them as fields.
I would like to hear from you on this subject.
Regards, and once again thanks, patforkin

matthew
12-08-2011, 14:41
Hey Pat it's Largo you should be thanking, not me. :)

I haven't used thinSED a lot, & to be honest I haven't used AWK a lot either. :(

What is it that you're actually trying to do Pat? I think you might be getting confused between SED (http://en.wikipedia.org/wiki/Sed) the *nix Stream Editor & thinSED which is just an IDE for entering thinBasic code.

If you're after a good tutorial for SED you could try this (http://www.grymoire.com/Unix/Sed.html) one.

jack
12-08-2011, 17:22
hi jack, petr, but I have saved a copy from spring time, I hope this content helps :)

thank you largo :)

José Roca
13-08-2011, 03:20
Please, keep in mind that thinSED was a quick hack of my SED editor for PowerBASIC to allow to edit and run scripts while Eros solved a problem with thinAir. As soon as Eros solved it, I stopped working in this version of the editor. Besides editing, the other features are not suitable for thinBasic and lacks some important options that thinAir has.

patforkin
13-08-2011, 10:18
Hello!
My thanks to all who have responded to my interest.
I am prducing a simple post describing what I am trying to do in terms of automating a translation framework.
I have built it to translate my texts written in English into German.
I built it because I found no translation tool which was acceptable.
I used the concept of a workspace managed by a text editor.
Unfortunately no text editor could do all the things I needed, so I have two text editors and a simple table database.
It is slow but effective.
I decided to look for a language to allow me to program each step in the process as a one-liner.
This I thought could be executed from a cmd-line called by the editor.
Honestly I have arrived at a point where "programming" is for me as much of a "pretence offering" as internet is.
What do I do?
I mark sentences to separate them into "sentence-parts". (It is my scheme because no language does it).
I add tags to indicate their roles in German. (Again my scheme because no language does it).
I re-sequence the parts to meet German grammar rules. (For this I wanted, I thought, SED with its AWK background).
I transform English expressions to meet German grammar needs. (Only one translation offering on the market can do it).
I then translate.
I check translations with the DudenKorrektor.
I will publish as it operates today in eBook form.
It will have an upgrade in September with a translation dictionary. (This will fully automate the process and make the DudenKorrektor unnecessary).
I will simultaneuosly publish a Framework for writing correct English sentences. (It has a notation database that I have built with a simple table editor. - No programming language library offers such, but everyone needs it).
I will not put the idea of using ThinBasic on ice, but I need a better way to learn it.
Is there a useful book written in "Real-English"?
Regards, patforkin.

José Roca
13-08-2011, 12:44
The name of this editor means Scintilla Editor, not streams editor.

patforkin
13-08-2011, 14:11
Hallo!
Just a mistake.
Neither a Ferrari nor a Mercedes Benz, but just a wheelbarrow,
Thanks for information.
Regards, patforkin.

José Roca
13-08-2011, 17:43
Neither a Ferrari nor a Mercedes Benz, but just a wheelbarrow


You don't need to be offensive. It has been your mistake, not mine. Anybody else would have understood that we were talking of a text editor, not of a streams editor. They are very different things.

patforkin
13-08-2011, 18:38
Hello!
It was in no way intended to be offensive.
The naming was yours and not mine. That could also apply to an inference.
Regards, patforkin.