Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RakuAST: implement for { } otherwise { } #5390

Closed
wants to merge 1 commit into from
Closed

Commits on Sep 22, 2023

  1. RakuAST: implement for { } otherwise { }

    I was looking at what would need to be done to port the Slang::Otherwise
    module to work with RakuAST, and realized it was probably less work to
    just implement the functionality in the Raku grammar.
    
    This does:
    - Implement a :otherwise argument to RakuAST::Statement::For
    - Adapts the QAST generation accordingly if an otherwise was found
    - Adds preliminary grammar support for "otherwise"
    
    This does NOT adapt .raku or .DEPARSE yet.
    
    It also doesn't answer the question on whether "otherwise" should be
    a 6.e feature, or should also be available in 6.c and 6.d.  It feels
    that it should also be available in 6.c and 6.d so that users of the
    Slang::Otherwise module can just remove it, and/or have the
    Slang::Otherwise module not do anything if it spots that it is being
    called with the Raku grammar.
    lizmat committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    5650b70 View commit details
    Browse the repository at this point in the history