Your workaround assumes that somehow is_nullary can determine, if perhaps only at run time, whether whatever is nullary or not.But this is an entirely different problem. No one claims that calling halt() doesn't make any sense just because it is statically undecidable. This is true for arbitrary programs ( functions ) in a Turing complete language and no one claims that function composition is useless because we can never know whether all of them terminate. The implicit assumption of your article is that the parser derives one and only one parse tree ( solves all ambiguities ) from an expression and only this assumption has to be given up. The assertion becomes much weaker then:
In reply to Re^3: Perl Cannot Be Parsed: A Formal Proof
by Anonymous Monk
in thread Perl Cannot Be Parsed: A Formal Proof
by Jeffrey Kegler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |