The standard libraries in Moonquakes are implemented as part of the runtime, not as black boxes.
Their purpose is to make Lua’s behavior visible and understandable, preserving the original semantics while exposing the execution path clearly.
Basic Functions
- [x] print - output values
- [x] tostring - convert to string
- [ ] assert - assertion check
- [ ] collectgarbage - GC control
- [ ] error - raise error
- [ ] type - type name
- [ ] pcall - protected call
- [ ] xpcall - protected call with handler
- [ ] next - table traversal
- [ ] pairs - table iterator
- [ ] ipairs - array iterator
- [ ] getmetatable - get metatable
- [ ] setmetatable - set metatable
- [ ] rawget - raw table get
- [ ] rawset - raw table set
- [ ] rawlen - raw length