Essential for beginners: Lua Source File Analysis

Source: Internet
Author: User

AboutLua source fileAnalysis is the content to be introduced in this article.LuaOfSource FileI think that as a beginner, I should learn and understand these content. For details, refer to this article.

Lua5.1.4 The core source code contains 55 files, which are roughly analyzed as follows:

 
 
  1. Lapi. c // Lua API, C calls API
  2. Lapi. h // Auxiliary functions from Lua API
  3. Lauxlib. c // Auxiliary functions for building Lua libraries
  4. Lauxlib. h // Auxiliary functions for building Lua libraries
  5. Lbaselib. c // Basic library
  6. Lcode. c // Code generator for Lua
  7. Lcode. h // Code generator for Lua
  8. Ldblib. c // Interface from Lua to its debug API, debugging
  9. Ldebug. c // Debug Interface, debugging
  10. Ldebug. h // Auxiliary functions from Debug Interface module, debugging
  11. Ldos. c // Stack and Call structure of Lua
  12. Ldos. h // Stack and Call structure of Lua
  13. Ldump. c // save precompiled Lua chunks
  14. Lfunc. c // Auxiliary functions to manipulate prototypes and closures
  15. Lfunc. h // Auxiliary functions to manipulate prototypes and closures
  16. Lgc. c // Garbage Collector
  17. Lgc. h // Garbage Collector
  18. Linit. c // Initialization of libraries for lua. c
  19. Liolib. c // Standard I/O (and system) library
  20. Llex. c // Lexical Analyzer
  21. Llex. h // Lexical Analyzer
  22. Llimits. h // Limits, basic types, and some other 'installation-dependent' definitions
  23. Lmathlib. c // Standard mathematical library
  24. Lmem. c // Interface to Memory Manager
  25. Lmem. h // Interface to Memory Manager
  26. Loadlib. c // Dynamic library loader for Lua
  27. Lobject. c // Some generic functions over Lua objects
  28. Lobject. h // Type definitions for Lua objects
  29. Lopcodes. c // command Definition
  30. Lopcodes. h // Opcodes for Lua virtual machine
  31. Loslib. c // Standard Operating System library
  32. Lparser. c // Lua Parser
  33. Lparser. h // Lua Parser
  34. Lstate. c // Global State
  35. Lstate. h // Global State
  36. Lstring. c // String table (keeps all strings handled by Lua)
  37. Lstring. h // String table (keeps all strings handled by Lua)
  38. Lstrlib. c // Standard library for string operations and pattern-matching
  39. Ltable. c // Lua tables (hash)
  40. Ltable. h // Lua tables (hash)
  41. Ltablib. c // Library for Table Manipulation
  42. Ltm. c // Tag methods
  43. Ltm. h // Tag methods
  44. Lua. c // Lua stand-alone interpreter
  45. Lua. h // Lua-An Extensible Extension Language, which is the header file used to call the Lua function in C.
  46. Luac. c // Lua compiler (saves bytecodes to files; also list bytecodes)
  47. Luaconf. h // Configuration file for Lua
  48. Lualib. h // Lua standard libraries, definition file of Lua standard library
  49. Lundump. c // load precompiled Lua chunks
  50. Lundump. h // load precompiled Lua chunks
  51. Lvm. c // Lua virtual machine
  52. Lvm. h // Lua virtual machine
  53. Lzio. c // a generic input stream interface
  54. Lzio. h // Buffered streams
  55. Print. c // print bytecodes

Summary: required documents for beginners: AboutLua source fileThe analysis is complete. 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.