lua introduction

9
Lua Language

Upload: arvind-panwar

Post on 13-Jan-2017

48 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Lua Introduction

Lua Language

Page 2: Lua Introduction

Topics to be covered..

• What is Lua .

• Brief Overview and History.

• Why we need Lua.

Page 3: Lua Introduction

What is Lua 1. Lua is a powerful, efficient, lightweight, embeddable scripting language.

2. Supports procedural programming, object-oriented programming. 3. Lua is dynamically typed Language. 4. Lua provides automatic garbage collection facility .

Page 4: Lua Introduction

Brief Overview "Lua" (pronounced LOO-ah) means "Moon" in Portuguese.Designed in 1993 by a team at PUC-Rio, Brazil.

Why ?To meet the increasing demand for customization of softwares.

How it could be done ?By extending software applicaions using a language.

Solution ?Lua

Page 5: Lua Introduction

ApplicationsIndustrial applications :

Adobe's Photoshop Lightroom. Ginga middleware for digital TV in Brazil.

Games : Angry Birds World of Warcraft

Page 6: Lua Introduction

Why we need Lua?Because ..

◦ Lua is embeddable

It has been used to extend programs written not only in C and C++, but also in Java.

It is cross-platform since it is written in ANSI C.

It Light Weight and Designed primarily for embedded systems .

It is fast.

Page 7: Lua Introduction

What we can do with LuaCustomization of our Application UI.

Changing ThemesAdding or Removal screensModifying Screens

Making application size small.

Extending our application according to future needs

Customization based upon merchant requirements.

Page 8: Lua Introduction

Syntax Simple Syntax:

◦ Print (‘Hello World’) --> Hello World

Variable Declaration :

local d , f = 5 ,10 declaration of d and f as local variables. d , f = 5, 10 declaration of d and f as global variables.

Page 9: Lua Introduction

Thank You