2022-08-13-progress report 9


This week I worked on the ASR of the template instantiation. The work is featured in this Pull Request.
I used the code from last week (from LPython) and tailored it to suit LFrotran.

Now in the AST body visitor, if there is a TypeParameter in the statements, it will add a TypeParameter.  Then in the instantiation, it maps the TypeParameters with the types.

I refactored some existing code of LFortran. The piece of code where the variable type is detemined, I also have to use it for determining the type from user's instantiation syntax.

The current implementation supports multiple TypeParameters per Template as well as multiple instances of the same Template using different types.

Comments

Popular posts from this blog

GSOC 2022 - LFortran - Implementing Generics