On Mon, Feb 6, 2012 at 8:02 PM, Andrew DeFaria <and...@defaria.com> wrote:
> Any chance we can get Parse::RecDescent to handle (void) parms?


Is that request in reference to Inline::CPP?

Would you consider this a reasonable test?

use Test::More;
use Test::Exception;
use Inline CPP => 'DATA';

TODO: {

    local $TODO = 'Not yet implemented: grammar recognizes void param list.';

    my $rv;

    lives_ok { $rv = myfunc() } 'grammar recognizes function with void param';
    is( $rv, 100, 'Function with void param yields expected return value.' );

}

done_testing();

__DATA__
__CPP__

int myfunc( void )
{
    return 100;
}

I guess I wasn't aware that this hadn't been implemented yet (and
haven't checked to verify either).  But if this is what you're looking
for please let me know and I'll get to it pronto.

Dave



-- 

David Oswald
daosw...@gmail.com

Reply via email to