Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Perl not BNF-able??

by jonadab (Parson)
on Jul 04, 2005 at 12:40 UTC ( [id://472214] : note . print w/replies, xml ) Need Help??

in reply to Re^2: Perl not BNF-able??
in thread Perl not BNF-able??

Well, you can claim that Perl 6 is going whole hogger on context sensitivity than Perl 5, but the fact is that Perl 6 is cleaning up all those silly post-declarational switches you're carping about

I didn't mean to be carping. (I never considered BNF-reducability to be an interesting goal, much less an important one, for a language's development. I'm much more interested in whether Perl6 is powerful and expressive, and from what I've managed to absorb so far, it has those things in spades.) Nonetheless, now that you mention it, a number of the specific things I mentioned are indeed going away in Perl6. On the other hand, the grammar in Perl6 is mutable, so I rather doubt the Perl6 parser will be able to be 100% defined in terms of BNF, unless I'm missing something. (Which is possible. You know more about this subject than I do.)

"In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."  — Pratico & Van Pelt, BBHG, p68