Zobrazeno 1 - 5
of 5
pro vyhledávání: '"Dangling else"'
Autor:
Matthew Might, Michael D. Adams
Publikováno v:
Proceedings of the ACM on Programming Languages. 1:1-25
Precedence and associativity declarations in systems like yacc resolve ambiguities in context-free grammars (CFGs) by specifying restrictions on allowed parses. However, they are special purpose and do not handle the grammatical restrictions that lan
Autor:
Amruth N. Kumar
Publikováno v:
SIGCSE
We propose a fork diagram as a visual representation of the algorithm for binary selection. Among other things, fork diagrams can be used to teach students how to write correctly nested if-else statements, analyze nested selection code, appreciate th
Autor:
Paul W. Abrahams
Publikováno v:
Communications of the ACM. 9:679-682
The dangling else problem consists of a class of potential ambiguities in ALGOL-like conditional statements whose basic form is “if B 1 then if B 2 then S 1 else S 2” where B 1 and B 2 are Boolean expressions and S 1 and S 2 are basic statements.
Autor:
Arthur F. Kaupe
Publikováno v:
Communications of the ACM. 6:460
Some revisions of ALGOL 60 are proposed, which not only eliminate certain ambiguous statements but also add some convenience to the language. A discussion of the background of the problem and a sketch of a proof that the ambiguities have been removed
Autor:
John H. Matthewman
Publikováno v:
Communications of the ACM. 7:165