lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Jan 8, 2016 at 12:11 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2016-01-08 3:57 GMT+02:00 Jonathan Goble <jcgoble3@gmail.com>:
>
>> Eventually I want to create my own programming language from
>> scratch for fun, probably implemented in Lua or Python (given my
>> limited C experience), and gaining a greater understanding of the
>> Lua internals through tweaking and reading code will aid me
>> in that goal.
>
> Just switch goal and method: creating one's own programming language
> from scratch and implementing it in Lua (where the C API also counts as
> Lua, after all it occupies over 30% of the manual) is a good way to gain
> a greater understanding of the Lua internals.

Well, what I mean is that I want to study how Lua lexes, parses, and
compiles source code. That kind of thing isn't exposed in the API or
standard library. I need to understand that, or at least the
essentials, before I can take a stab at creating a new language.