Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 570 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 570 Bytes

A Toy Lua Compiler Just For Study (And Just For Fun)


Note

Basic lexer, parser, codegen and Lua bytecode serialization/deserialization have been completed.

Some uncommon syntax have been ignored by me. The AST designed by me is somewhat unreasonable.

It was difficult for me to implement some codegen for the first time. Also, the Lua Bytecode is a little fizzy for me.

There are still some hidden bugs in codegen.

Generally, it's a naive project for learning compiler work principle. I did not do rigorous testing for so many functions.