"lua syntax cheat sheet" Code Answer's
You're definitely familiar with the best coding language Lua that developers use to develop their projects and they get all their queries like "lua syntax cheat sheet" answered properly. Developers are finding an appropriate answer about lua syntax cheat sheet related to the Lua coding language. By visiting this online portal developers get answers concerning Lua codes question like lua syntax cheat sheet. Enter your desired code related query in the search bar and get every piece of information about Lua code related question on lua syntax cheat sheet.
lua syntax cheat sheet
chunk ::= {stat [`;´]} [laststat [`;´]]
block ::= chunk
stat ::= varlist `=´ explist |
functioncall |
do block end |
while exp do block end |
repeat block until exp |
if exp then block {elseif exp then block} [else block] end |
for Name `=´ exp `,´ exp [`,´ exp] do block end |
for namelist in explist do block end |
function funcname funcbody |
local function Name funcbody |
local namelist [`=´ explist]
laststat ::= return [explist] | break
funcname ::= Name {`.´ Name} [`:´ Name]
varlist ::= var {`,´ var}
var ::= Name | prefixexp `[´ exp `]´ | prefixexp `.´ Name
namelist ::= Name {`,´ Name}
explist ::= {exp `,´} exp
exp ::= nil | false | true | Number | String | `...´ | function |
prefixexp | tableconstructor | exp binop exp | unop exp
prefixexp ::= var | functioncall | `(´ exp `)´
functioncall ::= prefixexp args | prefixexp `:´ Name args
args ::= `(´ [explist] `)´ | tableconstructor | String
function ::= function funcbody
funcbody ::= `(´ [parlist] `)´ block end
parlist ::= namelist [`,´ `...´] | `...´
tableconstructor ::= `{´ [fieldlist] `}´
fieldlist ::= field {fieldsep field} [fieldsep]
field ::= `[´ exp `]´ `=´ exp | Name `=´ exp | exp
fieldsep ::= `,´ | `;´
binop ::= `+´ | `-´ | `*´ | `/´ | `^´ | `%´ | `..´ |
`<´ | `<=´ | `>´ | `>=´ | `==´ | `~=´ |
and | or
unop ::= `-´ | not | `#´
All those coders who are working on the Lua based application and are stuck on lua syntax cheat sheet can get a collection of related answers to their query. Programmers need to enter their query on lua syntax cheat sheet related to Lua code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about lua syntax cheat sheet for the programmers working on Lua code while coding their module. Coders are also allowed to rectify already present answers of lua syntax cheat sheet while working on the Lua language code. Developers can add up suggestions if they deem fit any other answer relating to "lua syntax cheat sheet". Visit this developer's friendly online web community, CodeProZone, and get your queries like lua syntax cheat sheet resolved professionally and stay updated to the latest Lua updates.