Grammar Q: does result polymorphism make sense?

2009-06-07 Thread Austin Hastings
Howdy, One of the problems in recursive-descent parsing is constructs that look a lot alike at the front, only to differ at the end -- a sort of end-weight pathology. The example I'm thinking of is the similarity between variable and function declarations in 'C'. extern int foo = 0;

Re: Grammar Q: does result polymorphism make sense?

2009-06-07 Thread John M. Dlugosz
Austin Hastings Austin_Hastings-at-Yahoo.com |Perl 6| wrote: Anyway, I'm not proposing anything so much as wondering out loud. Surely there's a bunch of smarter bears than me who have given this some thought. Any wisdom? =Austin The short answer is that the Perl 6 pattern matching