Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-05

FPC scripting suport

12 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

MihaiR

Hello all,

Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application.
It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content.

Thank you very much.
Best regards,
Mihai

Damien Gerard
to MihaiR
MihaiR wrote
Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting?

LUA is very powerfull.
I used it in my app for months and it works very well.

Show quoted text 15 lines
I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application. It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content. Thank you very much. Best regards, Mihai
Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat
Michael Van Canneyt
to MihaiR: Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to…
MihaiR wrote 14 lines
Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application. It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content.

Remobjects PascalScript works with FPC.
(it used to be innerfuse pascal)

Michael.

Damien Gerard
to Michael Van Canneyt
Michael Van Canneyt wrote 21 lines
On Wed, 28 May 2008, MihaiR wrote: > Hello all, > > Is there any component for FPS/Lazarus I can succesfully > use for scripting? I'd like to build an application that > can be enhanced by some simple functions stored into an > external script file so that functions can be edited. There > are simple functions with few parameters and which return > the result to the main application. > It is something like VAT calculation: main (compiled > application send price to the script function and script > function returns the VAT value). Of course this is a > simplified example, on my situation there are many > functions and I want one function to have configurable > formula content. Remobjects PascalScript works with FPC. (it used to be innerfuse pascal)

Just for my information does it work under Linux *and* OS X ?

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat
Henry Vermaak
to Damien Gerard

2008/5/28 Damien Gerard :

Show quoted text 10 lines
Le May 28, 2008 à 12:08 PM, Michael Van Canneyt a écrit : > > Remobjects PascalScript works with FPC. > (it used to be innerfuse pascal) Just for my information does it work under Linux *and* OS X ?

i386 linux and win32. powerpc-darwin also works.

henry

Damien Gerard
to Henry Vermaak
Henry Vermaak wrote 14 lines
2008/5/28 Damien Gerard : > > Le May 28, 2008 à 12:08 PM, Michael Van Canneyt a écrit : > >> >> Remobjects PascalScript works with FPC. >> (it used to be innerfuse pascal) > > > Just for my information does it work under Linux *and* OS X ? > i386 linux and win32. powerpc-darwin also works.

Is i386-darwin planned ?

Damien Gerard "Intelligence is 10 million rules." -- Douglas Lenat
Henry Vermaak
to Damien Gerard

2008/5/28 Damien Gerard :

Show quoted text 6 lines
> > i386 linux and win32. powerpc-darwin also works. > Is i386-darwin planned ?

not that i know of (not by me, anyway). won't be too hard for someone with reasonable x86 assembler knowledge.

henry

Leonardo M. Ram�
to MihaiR

I use JVInterpreter from JEDI with very good results in Delphi. It allows you to write from simple functions to complete programs using procedural and object oriented programming, also one can share objects between the application and the script.

Does anyone ported it to FPC?

Leonardo M. Ramé
http://leonardorame.blogspot.com

Michael Van Canneyt
to Leonardo M. Ram�
Show quoted text 5 lines
I use JVInterpreter from JEDI with very good results in Delphi. It allows you to write from simple functions to complete programs using procedural and object oriented programming, also one can share objects between the application and the script. Does anyone ported it to FPC?

It looks very abandoned to me ?

Michael.

Unknown author
to Michael Van Canneyt

I'm using Pascal Script 3.0 in FPC...

Fabio

2008/5/28 Michael Van Canneyt :

Show quoted text 17 lines
On Wed, 28 May 2008, wrote: > I use JVInterpreter from JEDI with very good results in Delphi. It allows you to write from simple > functions to complete programs using procedural and object oriented programming, also one can > share objects between the application and the script. > > Does anyone ported it to FPC? It looks very abandoned to me ? Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Lee Jenkins
to MihaiR: Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to…
MihaiR wrote 15 lines
Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters and which return the result to the main application. It is something like VAT calculation: main (compiled application send price to the script function and script function returns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content.

Also, Fast-Report's FastScript worksing FreePascal now. It support PascalScript, JavaScript, BasicScript (ACK!) and C++Script.

It's commercial though.

Warm Regards, Lee "When my company started out, we were really, really, really, really small. Now...we're just really small."