Create my own LUA compiler

Recommended Posts

Dear users,

I have a ubuntu server, and I want to create my own LUA compiler.

It's not that I don't trust yours, but I want to create my own.


What do I have to do?



Share this post

Link to post

Well, since you want to compile Lua... you should know Assembly. The thing that MTA does is encrypt.

Share this post

Link to post

Just to inform you, if you're planning on created a lua compiler to use with MTA, that will not work.


Share this post

Link to post

Lua does not compile to assembly (Except JIT), and knowing assembly is not a requirement.

You will have to study about compilers, which includes lexers, parsers, grammars, ASTs etc.

The answers here will be very helpful to you: https://stackoverflow.com/questions/1669/learning-to-write-a-compiler

Lua's syntax in extended BNF is given here: http://www.lua.org/manual/5.1/manual.html#8 (Last section on the page)

Edited by specahawk

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.