bamboo/boo — pull request #36 by drslump (2012-11-13 20:20:14+00:00)
Title: pattern matching for arrays

I find it quite useful to be able to use pattern matching directly on arrays, however it wasn't possible since using `case (_,2,3)` is parsed as a MethodInvocationExpression, thus the match macro complains that it's not a valid statement.

This patch checks MethodInvocationExpressions to see if the target is the keyword `array`, if so handles the pattern as a fixed size pattern, allowing the following use cases:

match value:
case array(): print 'Empty array'
case array('foo', myvar, _): print myvar
case array(myvar, *_): print myvar