Description of the Lua source code file

Source: Internet
Author: User

LuaLanguageSource code fileIt means the content to be introduced in this article, mainly to learnLua source codeMediumFileFor more information, see the description in this article.

Ldebug. c-debugging interface: contains the function used to access the debugging hook.Lua_ Sethook/lua_gethook/lua_gethookcount). Check the bytecode function lua_getstatck/lua_getlocal/lua_setlocal ), and the function luaG_typeerror/luaG_concaterror/luaG_aritherror/luaG_ordererror/luaG_errormsg/luaG_runerror) that throws errors)

Lzio. c-a common input stream interface with a buffer

Lmem. c-memory management interface. Two functions, luaM_realloc and luaM_growaux _, are implemented by encapsulating the memory allocation function.

Lgc. c-memory management of the Garbage Collector)

Lstate. c-global context. Including enable and disableLUAPublish functions (lua_newstate/lua_close) and lua thread functions (luaE_newthread/luaE_freethread)

Lobject. c-some general functions for Lua objects. Including data type to String Conversion Function, pure data equality test function luaO_rawequalObj), and log base 2luaO_log2)

Lstring. c-string table stores all string sets operated by Lua)

Lfunc. c-auxiliary functions for packaging prototype and Closure

Ltable. c-Lua table implements hash)

Lcode. c-Lua code generator. Used by lparser. c

Llex. c-This method analyzer. Used by lparser. c

Lparser. c-Lua syntax checker

Lundump. c-load the pre-compiled Lua code block. The luaU_undump function loads a pre-compiled code block. The luaU_header (internal function used by luaU_undump) is used to check the function header.

Ldump. c-Save the pre-compiled Lua code block. The luaU_dump function displays a function using the pre-compiled code string;

Lopcodes. c-Lua VM operator. Define the names and information of all operators (saved in two tables: luaP_opnames and luaP_opmodes)

Lvm. c-Lua virtual machine. Execute the bytecode luaV_execute ). Some functions that may be used by lapi. c, such as luaV_concat, are also exposed)

The stack and call structure of ldos. c-Lua. Control function call luaD_call/luaD_pcall), stack growth, collaborative Code Synchronization

Ltm. c-Method for marking primitives. Implementation of Object Access primitive methods (javashods)

Lbaselib. c-basic function library

Lstrlib. c-string Library

Ltable. c-table operation Library

Lmathlib. c-Math Library

Loslib. c-operating system related libraries

Liolib. c-Input Database

Loadlib. c-module library implements the require function and package function)

Ldblib. c-debugging Library

Lapi. c-Lua API. Implement the Lua c api (lua _ * function) Set

Lauxlib. c-define all luaL _ * function sets

Linit. c-implement the luaL_openlibs method to facilitate loading the above modules in c Language

Lua. c-Lua independent interpreter

Print. c-defines "PrintFunction? "Function, used to print the bytecode in the function to be used by the-l parameter in luac. c)

The luac. c-Lua compiler saves bytecode toFile, You can also list bytecode)

Summary: DetailsLuaLanguageSource code fileThe content of the meaning is introduced. I hope this article will help you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.