Posts

Showing posts from June, 2022
 2022-06-25-progress report 2 I successfully rebased the Merge Request ( https://gitlab.com/lfortran/lfortran/-/merge_requests/1664 ) onto the latest main to work in the Generics syntax.   There are some issues in the initial implementation. The AST generator recognizes the tokens and tries to generate the AST for the templates, but fails to include everything inside the template itself. For example the variables, functions inside the template does not get included in the AST.   So I read through the Bison documentation and looked at the files 'ast.h', 'semantics.h' and tried to figure out how I can make the contents of the Template appear in the AST. This is still ongoing. Even though the necessary components have been added to the parser.yy file, they still have to be added to the semantics.h as well. 
2022-06-18-progress report 1 This week I forked the LFortran repository and compiled it to generate some AST and ASR to inspect how they are generated. I also managed to take a look at the previous implementation of generics, a Merge Request made by Ondřej Čertík ( https://gitlab.com/lfortran/lfortran/-/merge_requests/1664 ). I will try to complete this Merge Request to get generics syntax working in LFortran as my first task.     Due to exams in my school, I couldn't get much work done this first week. I will be done with them in a few weeks time, until when my output will be lower than my actual capabilities.