Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 11:22
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Lua scripting language - is there a Pupget?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 01 Aug 2005, 13:57    Post_subject:  Lua scripting language - is there a Pupget?  

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 . . .

Cool

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7083
Location: Perth, Western Australia

PostPosted: Mon 01 Aug 2005, 21:57    Post_subject:  

Yep, lua-4.01 is a pupget, but that version is very old and the Lua language has changed somewhat since then.
Back to top
View user's profile Send_private_message Visit_website 
Revolutionist
Guest


PostPosted: Thu 04 Aug 2005, 08:02    Post_subject: here you are  

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!!!
lua.pup
Description  lua
pup

 Download 
Filename  lua.pup 
Filesize  169.6 KB 
Downloaded  1825 Time(s) 
Back to top
klhrevolutionist


Joined: 08 Jun 2005
Posts: 1124

PostPosted: Thu 04 Aug 2005, 16:37    Post_subject: it's is me  

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!
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 05 Aug 2005, 08:04    Post_subject:  

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) Embarassed

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:
 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:
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 WIKI
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0491s ][ Queries: 12 (0.0033s) ][ GZIP on ]