Added grammar support and testing infrastructure.