Pivot support

Hello,
Here's a change to add support for pivot statements with some tests. I haven't used javaCC before so I'm sure improvements are possible.