|
|
|
|
|
by bjoli
16 days ago
|
|
i have made a language that xompiles to c#. I wrote a lexer. then a parser. then a type checker (hindley milner, function local so that top level functions must have type signatures) a match compiler. the hardest part was what came next: the code generation. despite producing c# instead of MSIL. The features I use are: static and dynamic traits, pattern matching, and a concurrentML. It is actually quite simple when you don't have to do closure conversion yourself. |
|
The big drawback that I never managed to sort out is how to integrate with visual debuggers. How to generate GDB source mappings (or .PDB source mappings) that reference the original LanguageX source files.
So you end up with a toy language that is un-debuggable. Which is not nearly as much fun as it should be.