How to read function name from one lua script file in c++ execute code?

  c++, lua

I want to get the Lua function,which is like:

function name_1()
   ...
end
function name_2()
   ...
end

And in the c++ code will read the lua file,and get the function names,like:

name1()
name2()

I want to know ,is there some library to realize such purpose.If not,should i use some text parsing methods, or regular expressions´╝č

Source: Windows Questions C++

LEAVE A COMMENT