Daedalus compiler
Hedede opened this issue · 2 comments
Hedede commented
Hello. I've written a Daedalus parser not long ago, and I wonder if there's any interest into merging it into this project.
I've uploaded the code to Hedede/Daedalus. The state it was left in, as far as I can remember:
- Fully functioning parser (tested on GMDK scripts).
- Symbol table and type checking started, but not finished.
- Debug tools: AST dumper, .dat dumper (prints symbol table and bytecode as pseudoassembly)
- Unfinished codegen (prints pseudoassembly), uncommited
- Unfinished compiler driver (which takes an .src file as input and manages compilation process), also uncommited
ataulien commented
Hi!
It would be actually pretty useful to have such a parser. That way it might be easier to add functionality from an other language or to convert the Daedalus-Code to something more modern.
For REGoth I thought about using something like Python or ChaiScript, but haven't gotten really far with a decompiler yet. Maybe I'll just give the option to hook existing daedalus-functions...
Anyways, this would be a great addition to ZenLib and/or REGoth!