Discussion:
[fpc-pascal] Proud to announce..
Michael Van Canneyt
2018-12-04 22:01:08 UTC
Permalink
Hello !

If anyone still doubted that Object Pascal is the best programming language,
running on the most platforms:

It is with considerable pride that I can announce a new major milestone has
been reached in Free Pascal's pas2js story:

The pas2js compiler runs now embedded in the browser itself.

A picture says more than a thousand words, see attachment.

See it in action for yourself:

https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html

How does it work ?
1. Enter the source of your program.
2. Load the necessary units on the 'load units' tab.
(The "Load default units" button is a good start)
3. Hit "Compile" !
4. Observe the output of the compiler in the tab "Compiler output"
5. If all went well, the 'Run' button is now active...
6. Press the 'Run' button !

The program will be loaded & run in an IFrame at the bottom of the page.

Obviously, this is only a demo, and there is ample room for improvement
(specifying additional options, viewing generated source code, improving gui)
and you don't have all units available: only the ones in 'rtl' have been
made available. (it's just a matter of uploading them)

But it works. No server interaction other than loading the extra needed
unit sources is necessary: all is done in the browser.

All code is committed in SVN, demo/webcompiler.

Last but not least:
Once more I want to thank Mattias Gaertner for his incredible work on the
compiler, without whose solid foundations I would not have been able to do this
!

Enjoy, and stay tuned for more wonderful features & cutting edge technology
from the people that bring you Free Pascal & Lazarus !

Michael.
Marc Hanisch via fpc-pascal
2018-12-06 06:19:41 UTC
Permalink
Wow, great work Michael,

Now let's build a little editor with the great ACE editor, which already
has support for Object Pascal: https://ace.c9.io.

It would be awesome to have a fully working Pascal compiler with an editor
and all the latest units online!

I'm really looking forward any enhancements.

Best regards,
Marc
Post by Michael Van Canneyt
Hello !
If anyone still doubted that Object Pascal is the best programming language,
It is with considerable pride that I can announce a new major milestone has
The pas2js compiler runs now embedded in the browser itself.
A picture says more than a thousand words, see attachment.
https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html
How does it work ?
1. Enter the source of your program.
2. Load the necessary units on the 'load units' tab.
(The "Load default units" button is a good start)
3. Hit "Compile" !
4. Observe the output of the compiler in the tab "Compiler output"
5. If all went well, the 'Run' button is now active...
6. Press the 'Run' button !
The program will be loaded & run in an IFrame at the bottom of the page.
Obviously, this is only a demo, and there is ample room for improvement
(specifying additional options, viewing generated source code, improving gui)
and you don't have all units available: only the ones in 'rtl' have been
made available. (it's just a matter of uploading them)
But it works. No server interaction other than loading the extra needed
unit sources is necessary: all is done in the browser.
All code is committed in SVN, demo/webcompiler.
Once more I want to thank Mattias Gaertner for his incredible work on the
compiler, without whose solid foundations I would not have been able to do this
!
Enjoy, and stay tuned for more wonderful features & cutting edge technology
from the people that bring you Free Pascal & Lazarus !
Michael._______________________________________________
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Continue reading on narkive:
Loading...