chunk
stat list
stat item
stat
keyword function
function
funcname
dotted name
Name
printf
optional colon name element
funcbody
(
optional parlist
...
)
block
chunk
stat list
stat item
stat
functioncall
prefixexp
var
prefixexp
var
Name
io
.
Name
write
args
(
optional explist
explist
exp
exp
var
prefixexp
var
Name
string
.
Name
format
args
(
optional explist
explist
exp
...
)
)
optional laststat
keyword end
end
stat item
stat
functioncall
prefixexp
var
Name
printf
args
(
optional explist
explist
exp
String
double quoted string
"Hello %s from %s on %s\n"
exp
exp
exp
var
prefixexp
var
Name
os
.
Name
getenv
args
String
double quoted string
"USER"
keyword or
or
exp
String
double quoted string
"there"
exp
var
Name
_VERSION
exp
exp
var
prefixexp
var
Name
os
.
Name
date
args
(
optional explist
)
)
optional laststat
