lua-users home
lua-l archive

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


On Fri, 21 Feb 2020 at 21:55, Dibyendu Majumdar <mobile@majumdar.org.uk> 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.
>

Hi,

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
etc.

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

Regards
Dibyendu