develooper Front page | perl.recdescent | Postings from March 2010

Re: P::RD for tab-completion

Thread Previous | Thread Next
From:
Ted Zlatanov
Date:
March 31, 2010 09:29
Subject:
Re: P::RD for tab-completion
Message ID:
87r5n0bgko.fsf@lifelogs.com
Thanks for the help.  I used it for a tab-completing CLI I developed to
talk to the Cassandra database; see Net::Cassandra::Easy 0.07 or later
on CPAN (cassidy.pl is the CLI).

I'm not happy with the verbosity of the resulting grammar but it works
well.  Maybe P::RD could have better built-in completion support,
similar to the way <autotree> works: something you can access when a
rule fails that tells you how far it got and what was successfully
parsed.  Basically the $expecting variable you suggested but set
automatically.

Ted


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About