Re: Is it possible to generate a context-free grammar for a programming language?



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

.



Relevant Pages

  • Re: Semicolons, conjuctive adverbs and main clauses
    ... It is quite clear that "he resigned" is an independent clause. ... The truth about the "rules of usage" is that most of them are not ... particular dialects of the language. ...
    (alt.usage.english)
  • Re: Semicolons, conjuctive adverbs and main clauses
    ... It is quite clear that "he resigned" is an independent clause. ... The truth about the "rules of usage" is that most of them are not ... they are often limited to particular dialects of the language. ...
    (alt.usage.english)
  • Re: Semicolons, conjuctive adverbs and main clauses
    ... It is quite clear that "he resigned" is an independent clause. ... The truth about the "rules of usage" is that most of them are not ... particular dialects of the language. ...
    (alt.usage.english)
  • Re: Dont use the "use" clause
    ... > Dmitry A. Kazakov wrote: ... > The use clause is barred by coding standards for a good reason, ... And if you need to see the declaration, ...
    (comp.lang.ada)
  • Re: How to do MAX-MIN on groups of records?
    ... clause, but is in a WHERE clause. ... so when subtracted the Usage is zero). ... "John Spencer" wrote: ... records for multiple machines and I need ...
    (microsoft.public.access.queries)