Re: Is it possible to generate a context-free grammar for a programming language?
- From: "Jimmy" <jimmy_please@xxxxxxxxx>
- Date: 30 Mar 2007 14:40:42 -0700
Part of the reason for answer "No", is it because programming language
such as C has ambigous syntax (i.e. series of if-else clause,
declaration vs usage of pointer?)? So context-free grammar cannot be
generated? If so, assuming there's a Turing-machine to execute this
string of C source code, can we hard-code some work-around logic in
the machine to make it to work?
Thanks
Jimmy
.
- References:
- Is it possible to generate a context-free grammar for a programming language?
- From: Jimmy
- Re: Is it possible to generate a context-free grammar for a programming language?
- From: Torben Ægidius Mogensen
- Is it possible to generate a context-free grammar for a programming language?
- Prev by Date: Re: My LP Formulation of the TSP: Conclusions
- Next by Date: Re: My LP Formulation of the TSP: Conclusions
- Previous by thread: Re: Is it possible to generate a context-free grammar for a programming language?
- Next by thread: A cycle with minimum length
- Index(es):
Relevant Pages
|