You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**A minimal, educational Lua 5.1 compiler written in Lua**
5
+
**A minimal, educational Lua 5.1 compiler written in pure Lua**
6
6
7
7
_Inspired by [Jamie Kyle's The Super Tiny Compiler](https://github.com/jamiebuilds/the-super-tiny-compiler) written in JavaScript_
8
8
@@ -15,9 +15,9 @@ _Inspired by [Jamie Kyle's The Super Tiny Compiler](https://github.com/jamiebuil
15
15
-**Zero dependencies**: Written in standard Lua 5.1 with no external libraries. Just one file and the Lua interpreter are all you need.
16
16
-**Complete Pipeline:** Includes a tokenizer, parser, code generator, compiler, and a virtual machine, all in one file.
17
17
-**Speed**: While education is the priority, the tokenizer uses optimized lookups and the compiler is designed efficiently, making it quite fast for a compiler written in a high-level language.
18
-
-**100% test coverage**: TLC has a test suite that covers 100% of the code. Want to see it in action? Run `lua tests/test.lua` in your terminal.
18
+
-**Tests**: Includes a comprehensive test suite with nearly 100% coverage, ensuring the compiler is as reliable as it is educational.
19
19
20
-
### [Want to jump into the code? Click here](https://github.com/bytexenon/The-Tiny-Lua-Compiler/blob/main/the-tiny-lua-compiler.lua)
20
+
### [Want to jump into the code? Click here](https://github.com/bytexenon/The-Tiny-Lua-Compiler/blob/main/tlc.lua)
21
21
22
22
---
23
23
@@ -53,7 +53,7 @@ Here is an example of how you can use it:
0 commit comments