![]() ![]() ![]() The pas2js compiler and RTL are - naturally - open source and can be downloaded and used freely. nodejs (basic node runtime environment).There is a basic Object Pascal RTL, several units from the FPC Packages are also available ![]() Pas2js can automatically include this file in the generated output, like this:įor nodejs, the compiler will insert the call to rtl.run() automatically at the end of the generated Javascript file. This object will start the Object Pascal code if you include a call to rtl.run() in the HTML page. This project is not related to a similar named project on github.įor the generated code to work, a small JavaScript file is needed: rtl.js. An import unit for jQuery is available (libjquery)Īs a non commercial open source project we are always searching for helping hands.For Node.js, basic support for the nodejs runtime environment is available.Through import units (comparable to the windows or unix units for the native compiler). All classes available in the JavaScript runtime, and in the browser are available.Through external class definitions, the compiler can use JavaScript classes: That means all sources must always be available. It transpiles from actual Pascal source, it has no intermediate. The JavaScript is currently of level ECMAScript 5 and should run in any browser or in Node.js (target "nodejs"). It parses Object Pascal and emits JavaScript. Pas2js is an open source Pascal to JavaScript transpiler. 17.1 Why is a simple hello world program so big?.9 Create simple JS objects with the new function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |