PDA

View Full Version : FastScript and FPC on Linux



Cybermonkey
02-12-2013, 01:09 PM
Hi, I don't know if there is anyone using FastScript here but I hope some of you do. So here we go:
Is it possible to use FastScript with pure FPC (64 bit, Linux)? No LCL, just a console application? I ask this because my idea is to make my game engine (based on SDL2) scriptable. (Actually I am most interested in the BASIC-script part of FastScript.)
And is it possible to use types declared in the main program within FastScript? Since I am using SDL2 most types are based on pointers.
If not I would appreciate any other recommendation of a BASIC-like scripting language which works with Free Pascal. (Btw, at the moment I am using Lua).

User137
03-12-2013, 12:48 AM
Haven't used scripts myself, but just did a quick search. Does it go by the name of PascalScript now? At the bottom of the wiki page
http://wiki.freepascal.org/Pascal_Script
is example on how to use it in console mode
http://wiki.freepascal.org/Pascal_Script_Examples
Though i wouldn't say it's a well thought out example, because it's including Forms unit in uses. As far as i remember, Application variable isn't needed in console apps either.

Cybermonkey
03-12-2013, 08:23 AM
No, they are different. PascalScript is open source, FastScript is a commercial software. That's why I need to know if it works (before I buy it).