lua-users home
lua-l archive

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

Hello !

Not exactly what you are describing but there is this project

From their website:


Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.


Cheers !

On 9/3/20 21:28, Dibyendu Majumdar wrote:
On Fri, 21 Feb 2020 at 21:55, Dibyendu Majumdar <> wrote:
I am pleased to announce a new project to create a Lua/Ravi parser and
code generator that is not a replacement for the default one in
Lua/Ravi but can be used for more specialised code generation, as well
as as a means of understanding how the parser and code generator
works. My hope is that it will enable the study of Lua implementation
in educational institutions, as I intend to use classical methods of
compilation. Moreover, ease of maintenance is a bigger priority than
sheer memory or performance efficiency.


So I am looking for ideas / suggestions for what the api for this
library look like.
I need a C api to start with. I have been looking at other libraries
to see what they do, but none stands out as ideal. Perhaps Go is the
only language that has a built-in module that gives you lexer, parser

Suggestions welcome. If you know of a great example then I would
appreciate if you can give me a reference to the project.

In terms of modules, there will be at least following:

1. Lexer
2. Parser
3. Linearizer (Intermediate Linear Code)
4. Optimizer
5. Code generator