Things that NQP needs
This list is based on discussions with pmichaud and unimplemented items in the grammar, src/Grammar.pg.
Last updated: 2007-11-24
Code
&sigilHandle the mapping between
&fooand 'foo' subroutines.returnstatementWhile it seems like implementing
returnwould be a simple matter of generating PIR.returnstatements, it's not quite that simple, becausereturnstatements can occur inside of nested blocks.So, we need an NQP
returnstatement to throw a "return exception", which is then caught by the outermost block of the currently executing subroutine and then used as the argument to.return.Fortunately, the new design of S05 means that we don't really need return statements for developing action grammars, so this is no longer as much of a priority as it was.
Tests
Method ops
We should be able to load an external module (Pm suggests Test.pbc) and exercise methods using that.
Match variable access
$/Scalar context $( ... )
List context @( ... )
Variables with twigils
More tests for optional arguments and parameters
More tests for named arguments and parameters