Lua scripting language - is there a Pupget?

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Lua scripting language - is there a Pupget?

#1 Post by Lobster »

This program seems to have been written in Lua . . .
http://www.freepops.org/en/

Has anyone used or experimented with Lua - it is a scripting language available as a Pupget . . .

8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

Yep, lua-4.01 is a pupget, but that version is very old and the Lua language has changed somewhat since then.

Revolutionist

here you are

#3 Post by Revolutionist »

this is the lua package needed for lua? and it's compiler!!
this will install everything when done open terminal and type
lua or luac
for more information you should see there site!!!
Attachments
lua.pup
lua
(169.6 KiB) Downloaded 2054 times

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

it's is me

#4 Post by klhrevolutionist »

Sorry, about that it is me I put that up there so have fun with it!!!
it is the newest release, just go to there web site for more info, unless you already know of lua!!!
Heaven is on the way, until then let's get the truth out!

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

I don't know it - but it is a fast scripted or interpreted language

very elegant

try version 4 online - hey only 100k to download . . .
http://doris.sourceforge.net/lua/weblua.php

Here is some example code I am working on
(I prefer to use the language - pah - why should I have to learn it) :oops:

you create a text file called for example
welcome.lua
and call it by typing lua welcome.lua

in the welcome.lua test file below

Code: Select all

 index = [[
      
         Press Number
   
            1 Welcome 
            2 Strings 
            3 Numbers
            4 Calling C 

         ]] 

    print  (index)



[code]if line == "1" then
 dofile ("welcome.lua") ; line = io.read() ; dofile ("index.lua")
elseif line == "2" then
 dofile ("strings.lua")
elseif line == "3" then
 dofile ("numbers.lua")
elseif line == "4" then
 dofile ("callingc.lua")
end
[/code]


this makes index print on screen the data betwwen [[ and ]]

Code: Select all

index = [[
      
         Press Number
   
            1 Welcome 
            2 Strings 
            3 Numbers
            4 Calling C 
         ]] 
a comment -- read a line
starts with two --

many commands on one line are separated by ;

http://lua-users.org/wiki/
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply