<div dir="auto"><div>Wow, great work Michael,</div><div dir="auto"><br></div><div dir="auto">Now let's build a little editor with the great ACE editor, which already has support for Object Pascal: <a href="https://ace.c9.io">https://ace.c9.io</a>.</div><div dir="auto"><br></div><div dir="auto">It would be awesome to have a fully working Pascal compiler with an editor and all the latest units online!</div><div dir="auto"><br></div><div dir="auto">I'm really looking forward any enhancements.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Marc<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">Am Mi., 5. Dez. 2018, 09:57 hat Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello !<br>
<br>
If anyone still doubted that Object Pascal is the best programming language, <br>
running on the most platforms:<br>
<br>
It is with considerable pride that I can announce a new major milestone has <br>
been reached in Free Pascal's pas2js story:<br>
<br>
The pas2js compiler runs now embedded in the browser itself.<br>
<br>
A picture says more than a thousand words, see attachment.<br>
<br>
See it in action for yourself:<br>
<br>
<a href="https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html" rel="noreferrer noreferrer" target="_blank">https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html</a><br>
<br>
How does it work ?<br>
1. Enter the source of your program.<br>
2. Load the necessary units on the 'load units' tab.<br>
(The "Load default units" button is a good start)<br>
3. Hit "Compile" !<br>
4. Observe the output of the compiler in the tab "Compiler output"<br>
5. If all went well, the 'Run' button is now active...<br>
6. Press the 'Run' button !<br>
<br>
The program will be loaded & run in an IFrame at the bottom of the page.<br>
<br>
Obviously, this is only a demo, and there is ample room for improvement<br>
(specifying additional options, viewing generated source code, improving gui) <br>
and you don't have all units available: only the ones in 'rtl' have been<br>
made available. (it's just a matter of uploading them)<br>
<br>
But it works. No server interaction other than loading the extra needed<br>
unit sources is necessary: all is done in the browser.<br>
<br>
All code is committed in SVN, demo/webcompiler.<br>
<br>
Last but not least:<br>
Once more I want to thank Mattias Gaertner for his incredible work on the<br>
compiler, without whose solid foundations I would not have been able to do this <br>
!<br>
<br>
Enjoy, and stay tuned for more wonderful features & cutting edge technology <br>
from the people that bring you Free Pascal & Lazarus !<br>
<br>
Michael._______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a></blockquote></div></div></div>