Quirrel 4.8.0 参考手册
项目源代码可在 https://github.com/GaijinEntertainment/quirrel 获取
版权所有 (c) 2003-2016 Alberto Demichelis 版权所有 (c) 2016-2024 Gaijin Games KFT
特此免费授予获得本软件和相关文档文件(“软件”)副本的任何人不受限制地处理本软件的权限,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售本软件副本的权利,并允许获得本软件的人这样做。 须符合以下条件:
上述版权声明和本许可声明应包含在本软件的所有副本或大部分内容中。
本软件按“原样”提供,不作任何明示或暗示的保证,包括但不限于对适销性、特定用途适用性和非侵权性的保证。在任何情况下,作者或版权所有者均不对因软件或软件的使用或其他交易而引起或与之相关的任何索赔、损害或其他责任负责,无论是在合同、侵权行为或其他诉讼中。
- 1. 语言
- 1.1. Lexical Structure
- 1.2. Values and Data types
- 1.3. Statements
- 1.3.1. Block
- 1.3.2. Control Flow Statements
- 1.3.3. Loops
- 1.3.4. break
- 1.3.5. continue
- 1.3.6. return
- 1.3.7. yield
- 1.3.8. Local variables declaration ( local )
- 1.3.9. Named bindings declaration ( let )
- 1.3.10. Function declaration
- 1.3.11. Class declaration
- 1.3.12. try/catch
- 1.3.13. throw
- 1.3.14. const
- 1.3.15. enum
- 1.3.16. Expression statement
- 1.4. Expressions
- 1.5. Tables
- 1.6. 数组
- 1.7. Functions
- 1.8. Classes
- 1.9. Generators
- 1.10. Constants & Enumerations
- 1.11. Destructuring assignment
- 1.12. $ - String interpolation
- 1.13. Threads
- 1.14. Weak References
- 1.15. Metamethods
- 1.16. 内置函数
- 1.17. Complier directives
- 1.18. List of Complier directives
- 1.19. Limitations
- 2. 嵌入 Quirrel
- 2.1. Memory Management
- 2.2. Build Configuration
- 2.3. Error Conventions
- 2.4. Virtual Machine Initialization
- 2.5. The Stack
- 2.6. Runtime error handling
- 2.7. Compiling a script
- 2.8. Calling a function
- 2.9. Create a C function
- 2.10. Tables and arrays manipulation
- 2.11. Userdata and UserPointers
- 2.12. The registry table
- 2.13. Mantaining references to Quirrel values from the C API
- 2.14. Debug Interface
- 3. API 参考