Recent

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

lestroso

  • Full Member
  • ***
  • Posts: 134
    • FaSasoftware
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: 8757
  • 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

  • Full Member
  • ***
  • Posts: 134
    • FaSasoftware
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11448
  • FPC developer.
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: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • 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: 1013
    • 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 :-[
Lazarus 3.0/FPC 3.2.2

peter@jazenga.com

  • Newbie
  • Posts: 4
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: 14367
  • Sensorship about opinions does not belong here.
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 »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018