* * *

Author Topic: Is there a Free Pascal To Javascript Working and Easy To Use????  (Read 3164 times)

lestroso

  • Jr. Member
  • **
  • Posts: 53
Is there a Free Pascal To Javascript Working and Easy To Use????

I need to use free converter from Pascal to Javascript....

I can't use smart mobile studio (not updated and too expansive),no unigui(only trial),no

raudus(don't work for me..too complicated)....no p2js(don't compile well, don't work)....Any idea??
Can i translate pascal first to java and then to javascript???any idea??

Best regards,Lestroso :-[

Leledumbo

  • Hero Member
  • *****
  • Posts: 7780
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #1 on: March 10, 2016, 04:14:33 am »
Is there a Free Pascal To Javascript Working and Easy To Use????

I need to use free converter from Pascal to Javascript....

pas2js is in 3.0.0 distribution.
Can i translate pascal first to java and then to javascript???any idea??
This means you don't know what Java is and how it has no relationship at all with JavaScript. You only make things worse by adding another translation layer that might not be able to represent all Pascal language features.

lestroso

  • Jr. Member
  • **
  • Posts: 53
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #2 on: March 10, 2016, 06:32:47 pm »
Dear leledumbo,

thanks for your answer...but can you tell me is there an installer??... how can i use pas2j3.0?
can you help me please? how i can  compile for javascript????

thanks a lot

lestroso :-[

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5941
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #3 on: March 10, 2016, 08:59:12 pm »
I think what Leledumbo wants to say is such minority routes are never easy.

Javascript is so yesterdays :-)

JD

  • Hero Member
  • *****
  • Posts: 1625
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #4 on: March 10, 2016, 11:19:52 pm »
Is there a Free Pascal To Javascript Working and Easy To Use????

I need to use free converter from Pascal to Javascript....

I can't use smart mobile studio (not updated and too expansive),no unigui(only trial),no

raudus(don't work for me..too complicated)....no p2js(don't compile well, don't work)....Any idea??
Can i translate pascal first to java and then to javascript???any idea??

Best regards,Lestroso :-[

You'll be better off in the long run by learning & doing what you are thinking of in HTML5.

JD
Windows (10, 7) - Lazarus 1.8/FPC 3.0.4, NewPascal, Delphi
Linux Mint Cinnamon  - Lazarus 1.8/FPC 3.0.4, NewPascal
Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

Leledumbo

  • Hero Member
  • *****
  • Posts: 7780
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #5 on: March 11, 2016, 09:14:40 am »
but can you tell me is there an installer??
No.
... how can i use pas2j3.0?

By building it (and the corresponding pastojs package, which is not built by default on my x86_64-linux) and studying its demo. I don't think it's feature complete, I can only guarantee all the demo works and converts correctly but that's it.
can you help me please? how i can  compile for javascript????
No, and you shouldn't. If you want javascript, write javascript. FPC doesn't have Javascript backend for now.

vfclists

  • Hero Member
  • *****
  • Posts: 823
    • HowTos Considered Harmful?
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #6 on: March 11, 2016, 02:29:37 pm »
The Smart Mobile Studio has a standalone compiler which is available free. If your work is not GUI oriented you can try it. Who knows, you may be able to start creating controls with it.

Dear leledumbo,

thanks for your answer...but can you tell me is there an installer??... how can i use pas2j3.0?
can you help me please? how i can  compile for javascript????

thanks a lot

lestroso :-[
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

peter@jazenga.com

  • Newbie
  • Posts: 2
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #7 on: January 12, 2018, 08:02:35 am »
Is there a Free Pascal To Javascript Working and Easy To Use????

I need to use free converter from Pascal to Javascript....

I can't use smart mobile studio (not updated and too expansive),no unigui(only trial),no

Smart Mobile Studio is one of the best solutions for Pascal to Javascript and if its expensive, your well.................tight!
That aside, you really ought to have another look because its regularly updated

SMS is also specifically designed to handle the JS quirks that pascal coders often find a nightmare
its also very easy to use, I have it

Thaddy

  • Hero Member
  • *****
  • Posts: 5179
Re: Is there a Free Pascal To Javascript Working and Easy To Use????
« Reply #8 on: January 12, 2018, 08:16:16 am »
By now (this is an old thread) Pas2JS has matured a lot and can be integrated in the Lazarus IDE with code completion, debugging and all. It is now very powerful and can target both server-side (e.g. node.js)  and client-side JavaScript.
I strongly suggest to play with it and have a look at the examples and tests. I like SMS, but I like the current, matured,  Pas2JS too (it may be even better for server-side JavaScript)

I find it *very* easy to use, though documentation is still sparse. And I had the benefit of watching a comprehensive live demo and presentation by dev(s) that made things a lot easier to me.

Note: Best results are with trunk... 1.9/3.1.1
« Last Edit: January 12, 2018, 08:23:47 am by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus