RakuAST Grant Report for 2021-02
Tue, 02-Mar-2021 by
Moritz Lenz
edit post
Jonathan Worthington writes about his RakuAST progress during February 2021:
---
During February much of my Raku working time was spent on my ongoing dispatcher work. However, I also got back into working on RakuAST. I implemented AST nodes, wrote AST tests, and updated the new RakuAST-based compiler frontend to cover:
* The `given`, `with`, `without`, and `when` statement modifiers (and I believe most of them produce cheaper code than in the current compiler)
* Anonymous variables (`my $ = 42` and similar, but also the use of a lone `$`, which declares an anonymous state variable)
* The `is` trait modifier (for the cases of traits that are implemented so far); of note, that means inheritance (`class Spork is Spoon is Fork {}`) now compiles
* Basic cases of the reduce meta-op (for example, `[+] 1,2,3`)
I also implemented calculating types by sigil for parameters when compiling those via RakuAST.
From this work, 11 further spectest files now pass in full using the RakuAST-based compiler frontend, bringing the total to 225 passing spectest files.
Comments (0)