Remember me

Lost Password?

Register now!
Main Menu
Who's Online
2 user(s) are online (1 user(s) are browsing News)

Members: 1
Guests: 1

Yanosh, more...
Last Replied Topics
Development tools : PortablE r6 beta released
Posted by PortablE on 2016/4/29 4:09:30 (3281 reads)
Development tools

Click to see original Image in a new window
PortablE is a recreation of the AmigaE programming language, along with all the improvements I wanted.

This is a small update, which makes any generated MUI code human-readable, and fixes a few bugs.

Previous versions of PortablE were aimed at existing AmigaE users, but PortablE now aims to be attractive for new users too. Although it's still "beta", it should work well, and further incompatible changes seem unlikely.

See the main manual for everything that has changed since r5. There have been the following big changes since the last beta:
* Built-in procedures can now support unlimited parameters (although only some have been updated to use this ability).
* Improved MUI modules to use procedures with unlimited parameters (instead of immedate tag lists). So the C/C++ code generated for GUIs is now human-readable!
* Added the NoListOptim switch, so that the code generated for Immediate Lists can be more human-readable.
* When a bug exception was thrown during compilation, it could give the wrong message. Now fixed.
* Fixed a few module bugs.

You can download it from here:

PortablE comes with documentation, but you can find on-line documentation, examples & the latest version of PortablE from it's homepage:

Rating: 9.00 (1 vote) - Rate this News -
Printer Friendly Page Send this Story to a Friend Create a PDF from the article
The comments are owned by the author. We aren't responsible for their content.

Author Thread
Published: 2016/5/2 1:23  Updated: 2016/5/2 1:23
Joined: 2006/4/7
Comments: 660
 Re: PortablE r6 beta released
Thank you for your efforts! Do you have an example for "makes any generated MUI code human-readable"? What do you mean? The PortableE-Code for MUI objects is human-readable?

Author Thread
Published: 2016/5/2 2:45  Updated: 2016/5/2 2:47
Joined: 2008/3/15
From: England
Comments: 630
 Re: PortablE r6 beta released
The way PortablE works is that it takes your E code, and generates C++ code, which is then USUALLY given to GCC to create an executable.

But PortablE does something very unusual when generating the C++ code: It preserves the comments & indentation (etc) present in the original E code (as far as possible). This means that it is normally possible for a human to read the generated C++ code, and find it not too much harder to understand than the original E code.

(So potentially you could use PortablE to convert an E program to C++, or maybe use E code as part of a C/C++ program (although that would be more difficult), or perhaps show your E program to someone only familiar with C/C++, or some other use I haven't thought of!)

There WAS one big exception to this though: MUI code. Because traditionally AmigaE (and thus PortablE) used MUI macros which worked quite differently to those you use with normal C code, as it used a feature that C does not have. Which for PortablE meant the generated C++ code was quite different to normal C code (and in fact pretty unreadable).

What I have now done is add a feature to PortablE (which AmigaE did not have), which allows it's MUI macros to work the same way as they do in C code. And the end-result is that the generated C++ code looks very similar to what you'd see in normal C code. So now PortablE generates human-readable C++ code for almost any E program you may throw at it, even if that program uses MUI

Author Thread
Published: 2016/5/2 4:10  Updated: 2016/5/2 4:10
Joined: 2006/4/7
Comments: 660
 Re: PortablE r6 beta released
Ah, I understand. Thank you! And keep up the good work!
Top Posters
1 paolone
2 magorium
3 nikolaos
4 phoenixkonsole
5 deadwood
6 ncafferkey
7 mazze
8 clusteruk
9 damocles
10 BSzili
© 2004-2018 AROS Exec