Articles on akshansh's Bloghttps://blogs.python-gsoc.orgUpdates on different articles published on akshansh's BlogenSat, 10 Sep 2022 11:32:56 +0000Week 12 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-12-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/1023">Tokenizer error in the string · Issue #1023 · lcompilers/lpython (github.com)</a> <span style="">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/974">Do not allow mixed (spaces &amp; tab) indent · Issue #974 · lcompilers/lpython (github.com)</a> <span style="">[CLOSED]</span></li> </ol> <h2><b>PRs Merged</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/1068">[Parser] Fix a bug in tokenizer related to docstring by akshanshbhatt · Pull Request #1068 · lcompilers/lpython (github.com)</a> <span style="">[MERGED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/1070">[Parser] Fix issue with different indentation type within the same file by akshanshbhatt · Pull Request #1070 · lcompilers/lpython (github.com)</a> <span style="">[MERGED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/1078">[Parser] Fix a bug with indentation of blocks by akshanshbhatt · Pull Request #1078 · lcompilers/lpython (github.com)</a> <span style="">[MERGED]</span></li> </ol> <p> </p>qaz.akshansh@gmail.com (akshansh)Sat, 10 Sep 2022 11:32:56 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-12-progress-report/Week 11 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-11-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/1024">`Not` unexpected in the expression · Issue #1024 · lcompilers/lpython (github.com)</a></li> <li><a href="https://github.com/lcompilers/lpython/issues/1025">`@=` is not handled in the expression · Issue #1025 · lcompilers/lpython (github.com)</a></li> <li><a href="https://github.com/lcompilers/lpython/issues/1027">`Starred id` is not recognized in the comprehension · Issue #1027 · lcompilers/lpython · GitHub</a></li> </ol> <h2><b>PRs Merged</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/1050">[Parser] Fix a bug with `not in` token by akshanshbhatt · Pull Request #1050 · lcompilers/lpython (github.com)</a></li> <li><a href="https://github.com/lcompilers/lpython/pull/1052">[Parser] Parse `@=` by akshanshbhatt · Pull Request #1052 · lcompilers/lpython (github.com)</a></li> <li><a href="https://github.com/lcompilers/lpython/pull/1053">[Parser] Recognise `starred_id` as a valid `id_item` by akshanshbhatt · Pull Request #1053 · lcompilers/lpython · GitHub</a></li> </ol>qaz.akshansh@gmail.com (akshansh)Sun, 28 Aug 2022 11:00:55 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-11-progress-report/Week 10 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-10-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/973">Comment after the Singleline Multi statement is not recognized · Issue #973 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/issues/972">Type Comment for the Function decorator is not recognized · Issue #972 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/issues/969">ListComprehension Subscript is not recognized · Issue #969 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/issues/968">List is not recognized in the GeneratorExp · Issue #968 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/issues/970">Tuple Subscript is not recognized · Issue #970 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> </ol> <h2><b>PRs Merged</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/976">[Parser] Fix bug with comment in multiline statements by akshanshbhatt · Pull Request #976 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/pull/979">[Parser] Refactor `TK_TYPE_COMMENT` by akshanshbhatt · Pull Request #979 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/pull/993">[Parser] Recognise `ListComprehension` Subscript by akshanshbhatt · Pull Request #993 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/pull/994">[Parser] Recognise lists and tuples in `GenExpr` by akshanshbhatt · Pull Request #994 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> <li><a href="https://github.com/lcompilers/lpython/pull/995">[Parser] Recognise tuple subscript by akshanshbhatt · Pull Request #995 · lcompilers/lpython (github.com)</a><span style=""> <strong>[CLOSED]</strong></span></li> </ol> <p> </p>qaz.akshansh@gmail.com (akshansh)Mon, 22 Aug 2022 09:05:58 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-10-progress-report/Week 9 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-9-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/916">Non-ascii name is not recognized by both the parser · Issue #916 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/951">[Parser] Add support for unicode identifiers by akshanshbhatt · Pull Request #951 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/948">[Parser] Fix bug with non-ASCII characters in the new parser by akshanshbhatt · Pull Request #948 · lcompilers/lpython (github.com)</a> <span style="color: #c0392b;">[CLOSED]</span></li> </ol> <h1><b>Issues Faced This Week</b></h1> <ul> <li>While working for an optimised version of the formatted string (using the tokeniser itself), I faced multiple issues. For now, it is still a work in progress.</li> </ul>qaz.akshansh@gmail.com (akshansh)Sun, 14 Aug 2022 14:53:53 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-9-progress-report/Week 8 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-8-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/513">[New] Parse `/` and `*` as a parameter in function definition · Issue #513 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/886">Singleline multi-statements are not recognized · Issue #886 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/905">[Parser] Fix bug with parsing `key:value` in separate lines by akshanshbhatt · Pull Request #905 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/902/files">[Parser] Parse lambda expressions by akshanshbhatt · Pull Request #902 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/899">[Parser] Parse multiple statements in single line as `body` of `multiline statements` by akshanshbhatt · Pull Request #899 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/885">[Parser] Add support for `GeneratorExp` nodes (new parser) by akshanshbhatt · Pull Request #885 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/850">[Parser] Properly handle functions with `*` and `/` in the new parser by akshanshbhatt · Pull Request #850 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> </ol>qaz.akshansh@gmail.com (akshansh)Fri, 05 Aug 2022 13:36:35 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-8-progress-report/Week 7 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-7-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/791">[New] Nested Call is not recognized · Issue #791 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/801">[Parser] Add `type-comment` support in new parser by akshanshbhatt · Pull Request #801 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/513">[New] Parse `/` and `*` as a parameter in function definition · Issue #513 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/777">[Parser] Issues with `BoolOp` node generation in new parser · Issue #777 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/778">[Parser] List Indexing is not supported in the new parser · Issue #778 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/779">[Parser] Tuples are not parsed in the `for-loop` (new parser) · Issue #779 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/803">[Parser] Error in parsing function definition (new parser) · Issue #803 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/830">[Parser] Add support for parsing nested function calls by akshanshbhatt · Pull Request #830 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/845">[Parser] Parse `type_comment` in function args by akshanshbhatt · Pull Request #845 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/847">[Parser] Add support for parsing strings with all possible `stringprefix` by akshanshbhatt · Pull Request #847 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/848">[Parser] Revert `BoolOp` node generation in the new parser by akshanshbhatt · Pull Request #848 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/850">[WIP][Parser] Properly handle functions with `*` and `/` in the new parser by akshanshbhatt · Pull Request #850 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> </ol>qaz.akshansh@gmail.com (akshansh)Sat, 30 Jul 2022 09:59:39 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-7-progress-report/Week 6 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-6-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Raised</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/780">[Parser] Expressions containing `in` are not parsed properly (new parser) · Issue #780 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/777">[Parser] Issues with `BoolOp` node generation in new parser · Issue #777 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/issues/778">[Parser] List Indexing is not supported in the new parser · Issue #778 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/issues/779">[Parser] Tuples are not parsed in the `for-loop` (new parser) · Issue #779 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/issues/803">[Parser] Error in parsing function definition (new parser) · Issue #803 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/803">[Parser] Error in parsing function definition (new parser) · Issue #803 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/779">[Parser] Tuples are not parsed in the `for-loop` (new parser) · Issue #779 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/787">[New] Default value (Argument assignment) is not recognized in Class statement · Issue #787 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/801">[Parser] Add `type-comment` support in new parser by akshanshbhatt · Pull Request #801 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/808">[Parser] Fix issue 803 by akshanshbhatt · Pull Request #808 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/809">[Parser] Add support for parsing tuples in `for-loop` by akshanshbhatt · Pull Request #809 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/810">[Parser] Recognise default values (keywords) in `class-def` by akshanshbhatt · Pull Request #810 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> </ol>qaz.akshansh@gmail.com (akshansh)Fri, 22 Jul 2022 16:43:43 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-6-progress-report/Week 5 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-5-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/512">[New] Parse raw, byte and formatted strings · Issue #512 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/485">TODO: Extract type hints from the comments · Issue #485 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> </ol> <h2><b>Merged PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/734">[Parser] Parse raw strings by akshanshbhatt · Pull Request #734 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/751">[Parser] Parse indexing operations on attributes by akshanshbhatt · Pull Request #751 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/724">[Parser] Parse `type-comments` in `for-loops` by akshanshbhatt · Pull Request #724 · lcompilers/lpython (github.com)</a><span style="color: #2ecc71;"> [CLOSED]</span></li> </ol> <h1><b>Problems Faced This Week</b></h1> <p>&lt;meta charset="utf-8"&gt;</p> <ul> <li>While working on making the <span style="font-family: Courier New,Courier,monospace;">BoolOp</span> node have multiple values of <span style="font-family: Courier New,Courier,monospace;">expr</span> type, I faced numerous issues. I could not make it match the output from the current parser. Thirumalai and I collaboratively worked on it and overcame most of the problems. It is mostly complete and requires some minor changes before submitting the final patch.</li> </ul> <h1><b>Plans For Upcoming Week</b></h1> <p>&lt;meta charset="utf-8"&gt;</p> <ul> <li>The new parser still generates many errors I found while testing on Python files from NumPy and SymPy repos. I will open issues related to each of these errors and fix them. One good sign I noticed was that whatever AST the new parser generates (after commenting out the error causing part) is highly accurate compared to the existing one.</li> </ul>qaz.akshansh@gmail.com (akshansh)Sat, 16 Jul 2022 09:22:50 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-5-progress-report/Week 4 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-4-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Raised</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/752">[Parser] `Tokenizer Error` on list comprehension example · Issue #752 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/512">[New] Parse raw, byte and formatted strings · Issue #512 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/issues/485">TODO: Extract type hints from the comments · Issue #485 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/734">[Parser] Parse raw strings by akshanshbhatt · Pull Request #734 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/pull/751">[Parser] Parse indexing operations on attributes by akshanshbhatt · Pull Request #751 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/pull/724">[Parser] Parse `type-comments` in `for-loops` by akshanshbhatt · Pull Request #724 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h1><b>Problems Faced This Week</b></h1> <ul> <li>I didn't face any major problems this week.</li> </ul> <h1><b>Plans For Upcoming Week</b></h1> <ul> <li>Most of the major AST nodes are implemented now. I plan to rigorously test the new parser to its limit by parsing python files from some of the major Python projects' repos such as SymPy and NumPy.</li> <li>Comparing the AST generated by the new parser from that of the existing parser would let us know the changes to be made in the current parser generator file.</li> </ul>qaz.akshansh@gmail.com (akshansh)Sat, 09 Jul 2022 18:19:08 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-4-progress-report/Week 3 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-3-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Raised</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/719">[Parser] Tuples are not parsed by the new parser · Issue #719 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/issues/725">Bug with `global` and `nonlocal` in the existing parser · Issue #725 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/508">Parse Single line if and for statements · Issue #508 · lcompilers/lpython (github.com)</a> <span style="color: #1abc9c;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/511">[New] Parse IN and IS in the expression · Issue #511 · lcompilers/lpython (github.com)</a> <span style="color: #1abc9c;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/512">[New] Parse raw, byte and formatted strings · Issue #512 · lcompilers/lpython (github.com)</a> [OPEN]</li> <li><a href="https://github.com/lcompilers/lpython/issues/485">TODO: Extract type hints from the comments · Issue #485 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/686">[Parser] Parse list comprehension by akshanshbhatt · Pull Request #686 · lcompilers/lpython (github.com)</a> <span style="color: #1abc9c;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/709">[Parser] Parsing support for `in` (Membership Operator) by akshanshbhatt · Pull Request #709 · lcompilers/lpython (github.com)</a> <span style="color: #1abc9c;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/724">[Parser] Parse `type-comments` in `for-loops` by akshanshbhatt · Pull Request #724 · lcompilers/lpython (github.com)</a> [OPEN]</li> </ol> <h1><b>Problems Faced This Week</b></h1> <ul> <li>While working on making tuples a valid valid <span style="font-family: Courier New,Courier,monospace;">expr</span> component, I faced multiple challenges. I even discussed it with my mentor (@Thirumalai) but as of now, there is no progress on this part.</li> </ul> <h1><b>Plans For Upcoming Week</b></h1> <ul> <li>I aim to work on the existing issues with <span style="color: #f39c12;"><span style="font-family: Verdana,Geneva,sans-serif;">Parser</span></span> label.</li> </ul> <p> </p>qaz.akshansh@gmail.com (akshansh)Sat, 02 Jul 2022 14:57:50 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-3-progress-report/Week 2 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-2-progress-report/<h1><b>Tasks Accomplished This Week</b></h1> <h2><b>Issues Raised</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/641">[Parser] Expression tree is not properly generated in `FormattedValue` · Issue #641 · lcompilers/lpython (github.com)</a> <span style="color: #bdc3c7;">[OPEN]</span></li> </ol> <h2><b>Issues Closed/Partially Completed</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/508">Parse Single line if and for statements · Issue #508 · lcompilers/lpython (github.com)</a> <span style="color: #bdc3c7;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/512">[New] Parse raw, byte and formatted strings · Issue #512 · lcompilers/lpython (github.com)</a> <span style="color: #bdc3c7;">[OPEN]</span></li> </ol> <h2><b>PRs</b></h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/624">[Parser] Add support for parsing prefixed strings by akshanshbhatt · Pull Request #624 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/682">[Parser] Parse conditional expressions by akshanshbhatt · Pull Request #682 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/686">[Parser] Parse list comprehension by akshanshbhatt · Pull Request #686 · lcompilers/lpython (github.com)</a> <span style="color: #bdc3c7;">[OPEN]</span></li> </ol> <h1><b>Problems Faced This Week</b></h1> <ul> <li>Only major problem faced this week was issue <a href="https://github.com/lcompilers/lpython/issues/641">#641</a>, which I plan to solve in the upcoming weeks.</li> </ul> <h1><b>Plans For Upcoming Week</b></h1> <ul> <li>I aim to work on issues <a href="https://github.com/lcompilers/lpython/issues/507">#507</a>, <a href="http://github.com/lcompilers/lpython/issues/507">#512</a>, <a href="https://github.com/lcompilers/lpython/issues/620">#620</a>.</li> </ul>qaz.akshansh@gmail.com (akshansh)Sat, 25 Jun 2022 09:03:37 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-2-progress-report/Week 1 - Progress Reporthttps://blogs.python-gsoc.org/en/akshanshs-blog/week-1-progress-report/<h1>Tasks Accomplished This Week</h1> <h2>Issues Raised</h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/612">[Tokenizer] Segfault during tokenization · Issue #612 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/617">[Tokenizer] Newline token not returned after comments · Issue #617 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> </ol> <h2>Issues Closed/Partially Completed</h2> <ol> <li><a href="https://github.com/lcompilers/lpython/issues/510">[New] Parse Ellipsis and None · Issue #510 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/511">[New] Parse IN and IS in the expression · Issue #511 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/509">[New] Parse Comments after and inside Multiline statements · Issue #509 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/612">[Tokenizer] Segfault during tokenization · Issue #612 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/617">[Tokenizer] Newline token not returned after comments · Issue #617 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/issues/512">[New] Parse raw, byte and formatted strings · Issue #512 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> </ol> <h2>PRs</h2> <ol> <li><a href="https://github.com/lcompilers/lpython/pull/538">[Parser] Parsing rules for `...` and `None` by akshanshbhatt · Pull Request #538 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/557">[Parser] Rules for expressions containing `is` and `is not` by akshanshbhatt · Pull Request #557 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/578">[Parser] Rules for `not in` by akshanshbhatt · Pull Request #578 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/619">[Parser] Fix issues with comment and indentation by akshanshbhatt · Pull Request #619 · lcompilers/lpython (github.com)</a> <span style="color: #2ecc71;">[CLOSED]</span></li> <li><a href="https://github.com/lcompilers/lpython/pull/624">[WIP][Parser] Add support for parsing prefixed strings by akshanshbhatt · Pull Request #624 · lcompilers/lpython (github.com)</a> <span style="color: #7f8c8d;">[OPEN]</span></li> </ol> <h1>Problems Faced This Week</h1> <ul> <li>I tried to close <a href="http://github.com/lcompilers/lpython/issues/511">#511</a> altogether but failed to do so because of multiple shift/reduce conflicts raised during parser generation. The syntax for logical keyword <span style="color: #4e5f70;"><span style="font-family: Courier New,Courier,monospace;">in</span></span> was conflicting with the syntax of <span style="color: #4e5f70;"><span style="font-family: Courier New,Courier,monospace;">for</span></span> loop.</li> <li>While working on parsing prefixed strings, I came across an error with byte strings. The current AST generation (the current slow parser) needs to be debugged.</li> <li>Formatted strings, as of now, works well for most of the cases. However in some cases, there is gibberish character generation for the formatted value's id field. I have still not found the actual cause of this issue. The same example generates perfectly fine AST on my mentor's computer (Linux, x86) but causes issue on mine (MacOS, ARM).</li> </ul> <h1>Plans For Upcoming Week</h1> <ul> <li>I aim to complete PR #624 and close the issue related to it (<a href="http://github.com/lcompilers/lpython/issues/512">#512</a>). I aim to add basic parsing support for formatted, byte, raw and unicode string initially. We can iterate and make it better later.</li> <li>I also aim to work on issues <a href="https://github.com/lcompilers/lpython/issues/508">#508</a> and <a href="https://github.com/lcompilers/lpython/issues/620">#620</a>.</li> <li>I will try to finally close <a href="http://github.com/lcompilers/lpython/issues/511">#511</a> by refactoring the <span style="color: #7f8c8d;"><span style="font-family: Courier New,Courier,monospace;">for</span></span> loop parsing patterns.</li> </ul>qaz.akshansh@gmail.com (akshansh)Sat, 18 Jun 2022 13:19:23 +0000https://blogs.python-gsoc.org/en/akshanshs-blog/week-1-progress-report/