Created
November 19, 2025 18:17
-
-
Save ab5tract/da93dea39dec512076478451f5c253fa to your computer and use it in GitHub Desktop.
Not parsed as RakuAST::Tyoe::Parameterized
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # say q|Array[Int]|.AST; | |
| RakuAST::StatementList.new( | |
| RakuAST::Statement::Expression.new( | |
| expression => RakuAST::Type::Parameterized.new( | |
| base-type => RakuAST::Type::Simple.new( | |
| RakuAST::Name.from-identifier("Array") | |
| ), | |
| args => RakuAST::ArgList.new( | |
| RakuAST::Type::Simple.new( | |
| RakuAST::Name.from-identifier("Int") | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
| # say q|R[Int]|.AST; | |
| RakuAST::StatementList.new( | |
| RakuAST::Statement::Expression.new( | |
| expression => RakuAST::ApplyPostfix.new( | |
| operand => RakuAST::Term::Name.new( | |
| RakuAST::Name.from-identifier("R") | |
| ), | |
| postfix => RakuAST::Postcircumfix::ArrayIndex.new( | |
| index => RakuAST::SemiList.new( | |
| RakuAST::Statement::Expression.new( | |
| expression => RakuAST::Type::Simple.new( | |
| RakuAST::Name.from-identifier("Int") | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment