Solved

Lua command line compiler (embed in delphi?) or call command lineQuestion:

Posted on 2010-08-15
5
1,185 Views
Last Modified: 2013-11-11
I use Delphi 2010

Lua command line compiler (embed in delphi?) or call command lineQuestion:
Does anyone know of a free Lua command line compiler that can be distributed with your application for free. I am interested in writing an app in Delphi that takes and passes a file of lua code to the lua compiler to be compiled.

http://www.lua.org/

Please give link to download and instructions on how to pass script file to compile

Also, if way to embed in delphi application, that would be highly appreciated!

???????
0
Comment
Question by:DelphiRulez
  • 2
5 Comments
 
LVL 13

Expert Comment

by:ThievingSix
ID: 33442804
0
 

Author Comment

by:DelphiRulez
ID: 33442985
i doubt you will find any compiler with that.....but hey, if i missed it somehow, please be sure to point me in the direction.

From original post:
"Please give link to download and instructions on how to pass script file to compile"
0
 
LVL 13

Accepted Solution

by:
ThievingSix earned 250 total points
ID: 33443052
You seem to have missed your own point.

At http://www.lua.org (which you provided):

"Lua is free software distributed in source code. It can be used for any purpose, including commercial purposes, at absolutely no cost."

So, I don't know, go here: http://www.lua.org/download.html
Then from there it links you to: http://luabinaries.sourceforge.net/
Which also says "Download" and brings you to: http://luabinaries.sourceforge.net/download.html
Which, I'll be damned, brings you to a download of lua5_1_4_Win32_bin.zip

If you look in that you'll find a lua compiler and interpreter all rolled into one.

Now, with the link I gave you it gives you a Delphi wrapper for the lua dll. In that example they go ahead and show you this:

var
  MyLua: TLua;

begin
  MyLua := TMyLua.Create;
  MyLua.DoFile('Helloworld.lua');
  MyLua.Free;
end;

Which, wow, "passes a file of lua code to the lua compiler to be compiled."

Now, since I've pointed you in the right direction with a few google searches and actually reading through the code from the link I sent, I'll move onto my next point.

We don't get paid to help you, we aren't here to give you full working solutions (Unless we want to). We help you find solutions to questions from your problems that you've already looked into (google?).

Far be it from me to not have enough time for you to whip up what you want at any time.
0
 
LVL 37

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 250 total points
ID: 33443815
it looks like ThievingSix aced this one with explaining how to google !
even an idiot could follow that explanation

what do you mean with embed in delphi ?

if you want to call scripts from within the IDE, then you would have to create a wizard.
No, not a magician, a wizard, aka ide extension:
since it's not clear what you really want, i'll just post some links on delphi wizards:

>> look in the sources for a extensive resource on wizards and Borland Ide Services
http://www.gexperts.org 

>> the starting reference (with bugs enlisted)
http://www.tempest-sw.com/opentools/

>> for further learning
http://delphi.about.com/od/objectpascalide/a/wizardsexperts.htm
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question