in reply to Re^2: Perl Cannot Be Parsed: A Formal Proof
in thread Perl Cannot Be Parsed: A Formal Proof
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:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl Cannot Be Parsed: A Formal Proof
by Jeffrey Kegler (Hermit) on Jun 23, 2009 at 16:23 UTC | |
Re^4: Perl Cannot Be Parsed: A Formal Proof
by Anonymous Monk on Aug 13, 2009 at 20:25 UTC |