Tuesday, April 15, 2008

Reading of Programming Language Pragmatics

Programming Language Syntax


The following syntax shows dangling else problem of Pascal.

  • stmt -> if condition then_clause else_clause | other_stmt

  • then_clause -> then stmt

  • else_clause -> else stmt | ε


Sometimes, we have a hard time to use some language. Sometimes it is not because we are not smart enough. It is because of the flaws of the programming language.

No comments: