Jump to content

Create my own LUA compiler


dam034

Recommended Posts

Posted

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?

 

Thanks

  • 3 weeks later...
Posted

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

 

Posted (edited)

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

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.
×
×
  • Create New...