fork(1) download
  1. str = [[
  2.   function test(arg1, arg2) {
  3.   dosomething(0x12f, "String");
  4.   }
  5. ]]
  6.  
  7. str = str:gsub("%s*(%w+)%s*", "%1§")
  8. str = str:gsub("(%W)%s*", "%1§")
  9. for token in str:gmatch("[^§]+") do
  10. print(token)
  11. end
Success #stdin #stdout 0s 2836KB
stdin
Standard input is empty
stdout
function
test
(
arg1
,
arg2
)
{
dosomething
(
0x12f
,
"
String
"
)
;
}