Yueliang + LuLu 完整的LuaInLua系统

本文介绍两个用Lua语言实现的Lua解释器项目:Yueliang和LuLu。Yueliang专注于前端实现,包括词法分析器、解析器和代码生成器;而LuLu则实现了Lua虚拟机。两者结合可构成一个完整的Lua in Lua实现方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Yueliang: http://yueliang.luaforge.net/

Introduction

The goal of Yueliang is to implement Lua 5 in Lua 5. Such a codebase, if well documented, can be a useful prototyping and educational tool. Initially, the focus is on the front end of Lua, i.e. the lexical analyzer, the parser and the code generator, in order to generate binary chunks. A port of the back end (the VM) is being considered. Yueliang is moon in Mandarin.


LuLu: http://luaforge.net/projects/lulu/

LuLu is a Lua 5.1 VM implementation in Lua language itself. It aims to be a concise, easily readable, and customizable LuaVM implemantation.


2者都是用lua语言实现的 一个实现了前端lex parser code, 一个实现了vm, 结合起来就是一个完整的lua in lua.

实现思路很有意思,代码及其紧凑。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值